|
1 | 1 | name: CI |
2 | 2 |
|
3 | | -on: [push, pull_request] |
| 3 | +on: |
| 4 | + push: |
| 5 | + pull_request: |
| 6 | + schedule: |
| 7 | + - cron: '0 0 * * *' |
4 | 8 |
|
5 | 9 | jobs: |
6 | 10 | build: |
7 | 11 |
|
8 | 12 | runs-on: ubuntu-latest |
9 | 13 | strategy: |
| 14 | + fail-fast: false |
10 | 15 | matrix: |
11 | | - os: [ubuntu-latest] |
12 | | - python-version: [3.6, 3.7, 3.8] |
| 16 | + python-version: |
| 17 | + - '3.6' |
| 18 | + - '3.7' |
| 19 | + - '3.8' |
| 20 | + - '3.9' |
| 21 | + - '3.10' |
13 | 22 |
|
14 | 23 | steps: |
15 | | - - uses: actions/checkout@v2 |
16 | | - - name: Set up Python ${{ matrix.python-version }} |
17 | | - uses: actions/setup-python@v2 |
18 | | - with: |
19 | | - python-version: ${{ matrix.python-version }} |
20 | | - - name: Display Python version |
21 | | - run: python -c "import sys; print(sys.version)" |
22 | | - - name: Check licenses |
23 | | - run: source .github/workflows/check_license.sh |
24 | | - - name: Check Python scripts |
25 | | - run: source .github/workflows/check_python_script.sh |
26 | | - - name: Check Python formatting |
27 | | - run: | |
28 | | - pip install black |
29 | | - black --check . |
30 | | - - name: Install Tox and any other packages |
31 | | - run: pip install tox |
32 | | - - name: Build package and run tests with Tox |
33 | | - run: tox -e py |
| 24 | + |
| 25 | + - uses: actions/checkout@v3 |
| 26 | + |
| 27 | + - name: Set up Python ${{ matrix.python-version }} |
| 28 | + uses: actions/setup-python@v2 |
| 29 | + with: |
| 30 | + python-version: ${{ matrix.python-version }} |
| 31 | + |
| 32 | + - name: Display Python version |
| 33 | + run: python -c "import sys; print(sys.version)" |
| 34 | + |
| 35 | + - name: Check licenses |
| 36 | + run: source .github/workflows/check_license.sh |
| 37 | + |
| 38 | + - name: Check Python scripts |
| 39 | + run: source .github/workflows/check_python_script.sh |
| 40 | + |
| 41 | + - name: Check Python formatting |
| 42 | + run: | |
| 43 | + pip install black |
| 44 | + black --check . |
| 45 | +
|
| 46 | + - name: Install Tox and any other packages |
| 47 | + run: pip install tox |
| 48 | + |
| 49 | + - name: Build package and run tests with Tox |
| 50 | + run: tox -e py |
0 commit comments