Skip to content

Commit

Permalink
test on python 3.11 (#327)
Browse files Browse the repository at this point in the history
* test on python 3.11

* uprev actions dependencies

* add 3.11 to classifers

* fix coverage

* stop coverage multiprocessing

* coverage[toml]
  • Loading branch information
samuelcolvin authored Aug 23, 2022
1 parent df79de9 commit 8f450be
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 21 deletions.
11 changes: 0 additions & 11 deletions .coveragerc

This file was deleted.

12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/checkout@v2

- name: set up python
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: 3.9

Expand All @@ -35,7 +35,7 @@ jobs:
- uses: actions/checkout@v2

- name: set up python
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: 3.9

Expand All @@ -50,7 +50,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu]
python-version: ['3.7', '3.8', '3.9', '3.10']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11-dev']

env:
PYTHON: ${{ matrix.python-version }}
Expand All @@ -69,7 +69,7 @@ jobs:
- uses: actions/checkout@v2

- name: set up python
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -80,7 +80,7 @@ jobs:

- run: coverage xml

- uses: codecov/codecov-action@v1.5.2
- uses: codecov/codecov-action@v2
with:
file: ./coverage.xml
env_vars: PYTHON,OS
Expand All @@ -95,7 +95,7 @@ jobs:
- uses: actions/checkout@v2

- name: set up python
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: '3.8'

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ lint:

.PHONY: test
test:
pytest --cov=arq
coverage run -m pytest

.PHONY: testcov
testcov: test
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ asyncio_mode = 'auto'
timeout = 10

[tool.coverage.run]
source = ['src']
source = ['arq']
branch = true

[tool.coverage.report]
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Topic :: Internet',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Clustering',
Expand Down
3 changes: 1 addition & 2 deletions tests/requirements-testing.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
coverage==6.3
coverage[toml]==6.4.4
dirty-equals==0.1
msgpack==1.0.3
pytest==6.2.5
pytest-asyncio==0.17.2
pytest-cov==3.0.0
pytest-mock==3.7.0
pytest-sugar==0.9.4
pytest-timeout==2.1.0
Expand Down

0 comments on commit 8f450be

Please sign in to comment.