diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 46a273f..689cd94 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,7 +17,7 @@ jobs: uses: actions/checkout@v4.1.0 - name: Set up Python 3.9 - uses: actions/setup-python@v4.7.0 + uses: actions/setup-python@v5.0.0 with: python-version: "3.9" @@ -30,13 +30,42 @@ jobs: pre-commit run --all-files --show-diff-on-failure pytest: - runs-on: ubuntu-latest + name: pytest ${{ matrix.python-version }} + runs-on: ubuntu-20.04 + needs: pre-commit + strategy: + fail-fast: false + matrix: + python-version: ["3.9", "3.10", "3.11", "3.12"] + steps: - name: Check out the repository uses: actions/checkout@v4.1.0 - - name: Set up Python 3.9 - uses: actions/setup-python@v4.7.0 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5.0.0 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + pip install -r requirements_dev.txt -e . + + - name: Run tests + run: | + pytest tests --cov=aiopegelonline --cov-report=xml + + codecov: + name: codecov + runs-on: ubuntu-20.04 + needs: pytest + + steps: + - name: Check out the repository + uses: actions/checkout@v4.1.0 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5.0.0 with: python-version: "3.9" diff --git a/setup.py b/setup.py index 43e973e..4713d69 100644 --- a/setup.py +++ b/setup.py @@ -30,6 +30,8 @@ "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Topic :: Software Development :: Libraries :: Python Modules", ], )