|
16 | 16 |
|
17 | 17 | jobs: |
18 | 18 | build: |
19 | | - runs-on: ubuntu-18.04 |
| 19 | + runs-on: ubuntu-latest |
20 | 20 | strategy: |
21 | 21 | fail-fast: false |
22 | 22 | matrix: |
23 | | - python-version: [3.7, 3.8, 3.9, "3.10"] |
| 23 | + python-version: [3.8, 3.9, "3.10", "3.11"] |
24 | 24 |
|
25 | 25 | steps: |
26 | 26 | - uses: actions/checkout@v1 |
|
29 | 29 | submodules: false |
30 | 30 |
|
31 | 31 | - name: Use Python ${{ matrix.python-version }} |
32 | | - uses: actions/setup-python@v1 |
| 32 | + uses: actions/setup-python@v4 |
33 | 33 | with: |
34 | 34 | python-version: ${{ matrix.python-version }} |
35 | 35 |
|
|
54 | 54 | pip install -U --no-index --find-links=deps deps/* |
55 | 55 | fi |
56 | 56 |
|
57 | | - pip install black==21.11b0 isort==5.10.1 |
| 57 | + pip install black isort |
58 | 58 |
|
59 | 59 | - name: Run tests |
60 | 60 | run: | |
@@ -84,28 +84,28 @@ jobs: |
84 | 84 |
|
85 | 85 | - name: Install distribution dependencies |
86 | 86 | run: pip install --upgrade twine setuptools wheel |
87 | | - if: matrix.python-version == 3.8 || matrix.python-version == 3.9 |
| 87 | + if: matrix.python-version == 3.10 |
88 | 88 |
|
89 | 89 | - name: Create distribution package |
90 | 90 | run: python setup.py sdist bdist_wheel |
91 | | - if: matrix.python-version == 3.8 || matrix.python-version == 3.9 |
| 91 | + if: matrix.python-version == 3.10 |
92 | 92 |
|
93 | 93 | - name: Upload distribution package |
94 | 94 | uses: actions/upload-artifact@master |
95 | 95 | with: |
96 | 96 | name: dist-package-${{ matrix.python-version }} |
97 | 97 | path: dist |
98 | | - if: matrix.python-version == 3.8 || matrix.python-version == 3.9 |
| 98 | + if: matrix.python-version == 3.10 |
99 | 99 |
|
100 | 100 | publish: |
101 | | - runs-on: ubuntu-18.04 |
| 101 | + runs-on: ubuntu-latest |
102 | 102 | needs: build |
103 | 103 | if: github.event_name == 'release' || startsWith(github.ref, 'refs/tags/') |
104 | 104 | steps: |
105 | 105 | - name: Download a distribution artifact |
106 | 106 | uses: actions/download-artifact@v2 |
107 | 107 | with: |
108 | | - name: dist-package-3.9 |
| 108 | + name: dist-package-3.10 |
109 | 109 | path: dist |
110 | 110 | - name: Publish distribution 📦 to Test PyPI |
111 | 111 | uses: pypa/gh-action-pypi-publish@master |
|
0 commit comments