Skip to content

Commit 98855f2

Browse files
committed
run all tox versions
1 parent 0b5161d commit 98855f2

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

.github/workflows/python-app.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,13 @@ jobs:
3131
run: ruff format --check .
3232
continue-on-error: true
3333

34-
build:
34+
test:
3535
needs: lint
3636
runs-on: ubuntu-22.04
3737
timeout-minutes: 40
38+
strategy:
39+
matrix:
40+
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
3841
env:
3942
PROXY: "http://188.245.226.105:8911"
4043
TEST_TESTNET: "true"
@@ -47,28 +50,29 @@ jobs:
4750
- name: Checking env
4851
run: |
4952
echo "PROXY: $PROXY"
50-
env
51-
- name: Set up Python
53+
echo "Python version: ${{ matrix.python-version }}"
54+
- name: Set up Python ${{ matrix.python-version }}
5255
uses: actions/setup-python@v6
5356
with:
54-
python-version: '3.12'
57+
python-version: ${{ matrix.python-version }}
5558
cache: 'pip'
5659
- name: Install dependencies
5760
run: |
5861
python -m pip install --upgrade pip
5962
pip install pytest pytest-cov pyright tox
6063
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
6164
if [ -f test-requirements.txt ]; then pip install -r test-requirements.txt; fi
62-
- name: Type check with pyright
65+
- name: Type check with pyright (Python 3.12 only)
66+
if: matrix.python-version == '3.12'
6367
run: pyright
6468
- name: Test with tox
65-
run: tox -v
69+
run: tox -e py
6670
- name: Coveralls Parallel
6771
uses: coverallsapp/github-action@v2
6872
with:
6973
parallel: true
7074
finish:
71-
needs: build
75+
needs: test
7276
if: ${{ always() }}
7377
runs-on: ubuntu-latest
7478
timeout-minutes: 5

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py311, py312
2+
envlist = py37, py38, py39, py310, py311, py312
33

44
[testenv]
55
deps =

0 commit comments

Comments
 (0)