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 20, 2023
1 parent c2ec8ac commit 8d8067d
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 11 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/test.yml
Expand Up @@ -13,19 +13,22 @@ 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: poetry run pytest --cov=notifications -n auto
- name: Get Cover
uses: orgoro/coverage@v3.1
with:
coverageFile: ./coverage.xml
token: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -15,3 +15,4 @@ test.sqlite3
settings.json
.pytest_cache
.vscode
coverage.xml
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 8d8067d

Please sign in to comment.