|
13 | 13 |
|
14 | 14 | jobs:
|
15 | 15 | build:
|
16 |
| - |
17 | 16 | runs-on: ${{ matrix.os }}
|
18 | 17 | strategy:
|
19 | 18 | fail-fast: false
|
20 | 19 | matrix:
|
21 |
| - python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] |
| 20 | + python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] |
22 | 21 | os: [ubuntu-latest, macOS-latest]
|
23 | 22 | include:
|
24 | 23 | - os: ubuntu-latest
|
25 | 24 | - os: macos-latest
|
26 | 25 |
|
27 | 26 | steps:
|
28 | 27 | - uses: actions/checkout@v2
|
29 |
| - - name: Set up Python ${{ matrix.python-version }} |
30 |
| - uses: actions/setup-python@v2 |
| 28 | + - uses: conda-incubator/setup-miniconda@v2 |
31 | 29 | with:
|
32 | 30 | python-version: ${{ matrix.python-version }}
|
| 31 | + miniconda-version: "latest" |
33 | 32 | - name: Install dependencies
|
| 33 | + shell: bash -l {0} |
34 | 34 | run: |
|
35 |
| - # $CONDA is an environment variable pointing to the root of the miniconda directory |
36 |
| - $CONDA/bin/conda install -c conda-forge --file requirements.txt flake8 pytest |
| 35 | + conda install -c conda-forge --file requirements.txt flake8 pytest |
37 | 36 | - name: Lint with flake8
|
| 37 | + shell: bash -l {0} |
38 | 38 | run: |
|
39 |
| - # stop the build if there are Python syntax errors or undefined names |
40 |
| - $CONDA/bin/flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics |
41 |
| - # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide |
42 |
| - $CONDA/bin/flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics |
| 39 | + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics |
| 40 | + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics |
43 | 41 | - name: Test with pytest
|
| 42 | + shell: bash -l {0} |
44 | 43 | run: |
|
45 |
| - $CONDA/bin/pytest |
| 44 | + pytest |
0 commit comments