Skip to content

Commit c2e09c3

Browse files
committed
Update CI workflow for running tests
NOTE: the tests fail on versions >= python 3.11, so this change restricts the test runner to use python 3.10. This is raised in issue #49.
1 parent 5f1e1d3 commit c2e09c3

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/build-release-artifacts.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ jobs:
1616
env:
1717
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1818
- name: Set up Python 3
19-
uses: actions/setup-python@v2
19+
uses: actions/setup-python@v4
2020
with:
21-
python-version: 3.x
21+
python-version: '3.10'
2222
- name: Install dependencies
2323
run: |
2424
python -m pip install --upgrade pip

.github/workflows/publish-pypi-release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@master
1515
- name: Set up Python 3
16-
uses: actions/setup-python@v1
16+
uses: actions/setup-python@v4
1717
with:
18-
python-version: 3.x
18+
python-version: '3.10'
1919
- name: Install pypa/build
2020
run: python -m pip install build --user
2121
- name: Build a binary wheel and a source tarball

.github/workflows/run-tests.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ jobs:
1515
strategy:
1616
matrix:
1717
os: [ubuntu-latest, windows-latest]
18-
python-version: [2.7, 3.x, pypy2, pypy3]
18+
python-version: ['2.7', '3.10', 'pypy2.7', 'pypy3.8']
1919
exclude:
2020
# excludes pypy 3 on Windows
2121
- os: windows-latest
22-
python-version: pypy3
22+
python-version: 'pypy3.8'
2323
fail-fast: false
2424
runs-on: ${{ matrix.os }}
2525
steps:
2626
- uses: actions/checkout@v2
2727
- name: Set up Python ${{ matrix.python-version }}
28-
uses: actions/setup-python@v2
28+
uses: actions/setup-python@v4
2929
with:
3030
python-version: ${{ matrix.python-version }}
3131
- name: Install dependencies

.github/workflows/test-coverage.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v2
1818
- name: Set up Python
19-
uses: actions/setup-python@v2
19+
uses: actions/setup-python@v4
2020
with:
2121
python-version: 2.7
2222
- name: Install dependencies

0 commit comments

Comments
 (0)