Skip to content

Commit

Permalink
Update CI (#69)
Browse files Browse the repository at this point in the history
* Add fail-fast to run all scenarios

Without it, first fail cancel all other strategies of the same
job (e.g. fail 3.5, all other versions will not run).

* Use Python 3.10 instead of 3.10-dev

* Update GitHub actions versions

* Add six to test environment

Required by tests/path.py:15 but satisfied by no other package,
causing tox envivonment to fail.
  • Loading branch information
rffontenelle committed Oct 22, 2022
1 parent 6b3913f commit 736e788
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [3.5, 3.6, 3.7, 3.8, 3.9, 3.10-dev]
python-version: [3.5, 3.6, 3.7, 3.8, 3.9, '3.10']
max-parallel: 1

steps:
Expand All @@ -16,12 +17,12 @@ jobs:
run: echo $GITHUB_CONTEXT

- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 1

- name: pycache
uses: actions/cache@v2
uses: actions/cache@v3
id: pycache
with:
path: ~/.cache/pip
Expand All @@ -30,7 +31,7 @@ jobs:
${{ runner.os }}-pip-
- name: Setup python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
if: "!endsWith(matrix.python-version, '-dev')"
with:
python-version: ${{ matrix.python-version }}
Expand All @@ -54,17 +55,18 @@ jobs:
lint:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
env: [flake8, mypy]

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 1

- name: Setup python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.8

Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
'test': [
'pytest',
'mock',
'six',
],
}

Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
envlist =
py{35,36,37,38,39,310-dev},
py{35,36,37,38,39,310},
flake8,
mypy

Expand All @@ -11,7 +11,7 @@ python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310-dev
3.10: py310

[testenv]
deps=-e.[transifex,test]
Expand Down

0 comments on commit 736e788

Please sign in to comment.