Skip to content

Commit f866324

Browse files
committed
CI fixes
Actually run CI, because that generally helps -- sigh. :) Also update the Python versions, bump action versions, install test dependency, and don't fail fast if a particular version fails.
1 parent 7bf48a8 commit f866324

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/python.yaml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,36 @@
11
name: Tests
22

3-
on: [push]
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
47

58
jobs:
69
test:
710
runs-on: ubuntu-latest
811
strategy:
12+
fail-fast: false
913
matrix:
10-
python-version: ['2.7', '3.7', '3.8', '3.9', '3.10']
14+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
1115

1216
steps:
13-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v3
1418
- name: Set up Python ${{ matrix.python-version }}
15-
uses: actions/setup-python@v2
19+
uses: actions/setup-python@v4
1620
with:
1721
python-version: ${{ matrix.python-version }}
1822
- name: Install dependencies
1923
run: |
2024
python -m pip install --upgrade pip
21-
pip install coveralls nose2 pylint setuptools wheel
25+
pip install coveralls nose2 pylint setuptools wheel dpkt
2226
- name: Test with nose2
2327
run: |
2428
cd tests && nose2 -C --coverage ../communityid --coverage-report term-missing communityid_test
2529
- name: Build package
2630
run: |
2731
python setup.py sdist bdist_wheel
2832
- name: Preserve built package
29-
uses: actions/upload-artifact@v2
33+
uses: actions/upload-artifact@v3
3034
with:
3135
name: communityid-py${{ matrix.python-version }}.tar.gz
3236
path: dist/*.tar.gz

0 commit comments

Comments
 (0)