Debian Codegraph @

.github/workflows/tox.yml

raw
1 name: tests
2 on:
3 pull_request:
4 push:
5 branches: [main]
6
7 concurrency:
8 group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
9 cancel-in-progress: true
10
11 env:
12 FORCE_COLOR: "1"
13 TOX_TESTENV_PASSENV: "FORCE_COLOR"
14 MIN_PYTHON_VERSION: "3.9"
15 DEFAULT_PYTHON_VERSION: "3.13"
16
17 jobs:
18 tests:
19 strategy:
20 fail-fast: false
21 matrix:
22 os: [ubuntu-latest] # [macos-latest, ubuntu-latest, windows-latest]
23 python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
24 runs-on: ${{ matrix.os }}
25 steps:
26 - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
27 with:
28 persist-credentials: false
29 - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
30 with:
31 python-version: ${{ matrix.python-version }}
32 - run: pip install --upgrade pip
33 - run: pip install tox
34 - run: tox -e py
35 lint:
36 strategy:
37 fail-fast: false
38 matrix:
39 job: [pep8, release-check]
40 runs-on: ubuntu-latest
41 steps:
42 - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
43 with:
44 persist-credentials: false
45 - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
46 with:
47 python-version: 3.x
48 - run: pip install --upgrade pip
49 - run: pip install tox
50 - run: tox -e ${{ matrix.job }}