Skip to content

Commit

Permalink
Fix GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroLQueiroz committed Jun 19, 2023
1 parent c2ec8ac commit 410a553
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 11 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/test.yml
Expand Up @@ -13,19 +13,17 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11"]

steps:
- name: apt update
run: sudo apt update
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
run: pipx install poetry
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions
- name: Test with tox
run: tox -v
run: poetry install
- name: Run tests
run: pytest --cov=notifications -n auto
36 changes: 35 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Expand Up @@ -104,6 +104,7 @@ tox = "^4"
psycopg2-binary = "^2.9.6"
django-test-migrations = "^1.3.0"
factory-boy = "^3.2.1"
pytest-xdist = "^3.3.1"

[build-system]
requires = ["poetry-core"]
Expand Down

0 comments on commit 410a553

Please sign in to comment.