Skip to content

Commit

Permalink
Update tests and github actions (#307)
Browse files Browse the repository at this point in the history
* Update actions and runner in github actions

* Increase pytest timeout

* Test python 3.13
  • Loading branch information
ol-iver authored Sep 24, 2024
1 parent cd04edc commit b0f5e3a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/python-code-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ permissions:

jobs:
test:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

name: Check python code formatting
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/python-publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ permissions:

jobs:
verify:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

name: Verify Python build context
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Verify version
Expand Down Expand Up @@ -48,17 +48,17 @@ jobs:
python -m black denonavr tests --check --verbose
- name: Integration test with pytest
run: |
python -m pytest tests --timeout=30 --durations=10
python -m pytest tests --timeout=60 --durations=10
build:
name: Build and publish PyPi package
needs: verify
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
if: github.repository_owner == 'ol-iver'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ permissions:

jobs:
test:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13.0-rc.2"]

name: Testing Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -33,4 +33,4 @@ jobs:
if [ -f test-requirements.txt ]; then pip install -r test-requirements.txt; fi
- name: Integration test with pytest
run: |
python -m pytest tests --timeout=30 --durations=10
python -m pytest tests --timeout=60 --durations=10
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py37,py38,py39,py310,py311,py312,pylint,lint,format
envlist = py37,py38,py39,py310,py311,py312,py313,pylint,lint,format
skip_missing_interpreters = True

[testenv:format]
Expand Down Expand Up @@ -30,4 +30,4 @@ setenv =
PYTHONPATH = {toxinidir}
deps =
-r{toxinidir}/test-requirements.txt
commands=python -m pytest tests --timeout=30 --durations=10 --cov=denonavr --cov-report html {posargs}
commands=python -m pytest tests --timeout=60 --durations=10 --cov=denonavr --cov-report html {posargs}

0 comments on commit b0f5e3a

Please sign in to comment.