Skip to content

Commit

Permalink
Attempt to use poetry on GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
s2t2 committed Jul 18, 2024
1 parent d12bb5e commit 8532368
Show file tree
Hide file tree
Showing 5 changed files with 2,795 additions and 175 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
# if [ -f requirements.txt ]; then pip install -r requirements.txt; fi

# TODO: use poetry instead!
# poetry install --with test,docs

- name: Install Poetry
uses: snok/install-poetry@v1
Expand All @@ -44,7 +45,7 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
poetry add python-dateutil
poetry --version
poetry install
# LINTING
Expand Down
28 changes: 18 additions & 10 deletions .github/workflows/quarto-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,25 +32,33 @@ jobs:
# PYTHON STUFF
#

# INSTALL PYTHON
- name: Set up Python 3.11
- name: Install Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11

# INSTALL PACKAGE DEPENDENCIES (IF YOU ARE DOCUMENTING YOUR PACKAGE)
- name: Install dependencies
run: |
pip install -r requirements.txt
# PACKAGE DEPENDENCIES

#- name: Install dependencies
# run: |
# pip install -r requirements.txt

# INSTALL DOCUMENTATION DEPENDENCIES
- name: Install docs dependencies
run: |
pip install -r docs/requirements.txt
#- name: Install docs dependencies
# run: |
# pip install -r docs/requirements.txt

# TODO: adapt to use poetry instead!
# TODO: use poetry instead!
# https://github.com/marketplace/actions/python-poetry-action
# poetry install --with test,docs

- name: Install Poetry
uses: snok/install-poetry@v1

# https://python-poetry.org/docs/managing-dependencies/#dependency-groups
- name: Install dependencies with Poetry
run: |
poetry install --with docs
Expand Down
4 changes: 1 addition & 3 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ conda create -n truthbrush-docs python=3.9
conda activate truthbrush-docs

conda install -c conda-forge poetry
poetry install

pip install -r docs/requirements.txt # todo: use poetry instead!
poetry install --with docs
```


Expand Down
Loading

0 comments on commit 8532368

Please sign in to comment.