Skip to content

Commit 0041aad

Browse files
authored
Test against Python 3.11, windows and update github actions. (#61)
* Test against Python 3.11 * Update action versions. * fail-fast: false * drop python 3.6 from builds.
1 parent 36b31d8 commit 0041aad

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,25 @@ env:
1919
jobs:
2020
build:
2121
strategy:
22+
fail-fast: false
2223
matrix:
23-
platform: [ubuntu-latest, macos-latest] # TODO windows-latest??
24-
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
25-
# seems like 3.6 isn't available on their osx image anymore
26-
exclude: [{platform: macos-latest, python-version: '3.6'}]
24+
platform: [ubuntu-latest, macos-latest, windows-latest]
25+
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
2726

2827
runs-on: ${{ matrix.platform }}
2928

3029
steps:
3130
# ugh https://github.com/actions/toolkit/blob/main/docs/commands.md#path-manipulation
3231
- run: echo "$HOME/.local/bin" >> $GITHUB_PATH
3332

34-
- uses: actions/setup-python@v2
33+
- if: ${{ matrix.platform == 'macos-latest' && matrix.python-version == '3.11' }}
34+
run: echo "$HOME/Library/Python/${{ matrix.python-version }}/bin" >> $GITHUB_PATH
35+
36+
- uses: actions/setup-python@v4
3537
with:
3638
python-version: ${{ matrix.python-version }}
3739

38-
- uses: actions/checkout@v2
40+
- uses: actions/checkout@v3
3941
with:
4042
submodules: recursive
4143

@@ -44,7 +46,7 @@ jobs:
4446

4547
- run: .ci/run
4648

47-
- uses: actions/upload-artifact@v2
49+
- uses: actions/upload-artifact@v3
4850
with:
4951
name: .coverage.mypy_${{ matrix.platform }}_${{ matrix.python-version }}
5052
path: .coverage.mypy/
@@ -58,11 +60,11 @@ jobs:
5860
# ugh https://github.com/actions/toolkit/blob/main/docs/commands.md#path-manipulation
5961
- run: echo "$HOME/.local/bin" >> $GITHUB_PATH
6062

61-
- uses: actions/setup-python@v2
63+
- uses: actions/setup-python@v4
6264
with:
6365
python-version: '3.7'
6466

65-
- uses: actions/checkout@v2
67+
- uses: actions/checkout@v3
6668
with:
6769
submodules: recursive
6870

0 commit comments

Comments
 (0)