Skip to content

Commit cfb4e2e

Browse files
committed
ci: update test workflow to ubuntu-latest, Python 3.10-3.12, modern test command
ubuntu-20.04 runners were retired from GitHub Actions, causing jobs to be permanently stuck in queued state. Python 3.6, 3.7, and 3.8 are EOL and have unfixed vulnerabilities in the locked deps. Updated to currently supported Python versions (3.10, 3.11, 3.12) which align with the 3.10+ dependency bumps in this PR. Replaced deprecated 'python setup.py test' with 'python -m unittest discover' since setup.py test was removed in modern setuptools.
1 parent 8a59936 commit cfb4e2e

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,25 @@ on:
77

88
jobs:
99
test:
10-
runs-on: ubuntu-20.04
10+
runs-on: ubuntu-latest
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
python: [3.6, 3.7, 3.8, "3.10"]
14+
python: ["3.10", "3.11", "3.12"]
1515

1616
name: Python ${{ matrix.python }} Test
1717

1818
steps:
1919
- name: Checkout
20-
uses: actions/checkout@v2
20+
uses: actions/checkout@v4
2121

2222
- name: Setup Python
23-
uses: actions/setup-python@v2
23+
uses: actions/setup-python@v5
2424
with:
2525
python-version: ${{ matrix.python }}
2626

2727
- name: Install dependencies
2828
run: pip install -r requirements.txt
2929

3030
- name: Run test suite
31-
run: python setup.py test
31+
run: python -m unittest discover -s pusher_tests

0 commit comments

Comments
 (0)