Skip to content

Commit

Permalink
github-actions: Use poetry install - inside tox and outside tox
Browse files Browse the repository at this point in the history
  • Loading branch information
noc0lour committed Jan 3, 2025
1 parent e102dcd commit d6f9cee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11"]
python-version: ["3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
Expand All @@ -35,5 +35,7 @@ jobs:
with:
path: ./.venv
key: venv-${{ hashFiles('poetry.lock') }}
- name: Install the project dependencies
run: poetry install --with=dev
- name: Run the automated tests (for example)
run: poetry run tox
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,7 @@ extras =
# see https://tox.readthedocs.io/en/latest/config.html#conf-usedevelop
usedevelop = False
commands_pre =
bash -c 'poetry export --with dev --without-hashes -f requirements.txt | grep -v "^[mM]okka==" > .requirements.txt'
poetry run pip install --no-deps -r .requirements.txt
poetry install --with=dev
commands =
pytest {env:PYTEST_MARKERS:} {env:PYTEST_EXTRA_ARGS:} {posargs:-vv}
Expand Down

0 comments on commit d6f9cee

Please sign in to comment.