Skip to content

Fix GH actions

Fix GH actions #89

Workflow file for this run

# Based on
# https://pypi.org/project/tox-gh-actions/
---
name: Test the application using Tox.
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
run: pipx install poetry
- name: Install dependencies
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 }}