|
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 | + os: ubuntu-latest |
| 17 | + python-version: |
| 18 | + - '3.6' |
| 19 | + - '3.7' |
| 20 | + - '3.8' |
13 | 21 |
|
14 | 22 | 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 |
| 23 | + |
| 24 | + - uses: actions/checkout@v3 |
| 25 | + |
| 26 | + - name: Set up Python ${{ matrix.python-version }} |
| 27 | + uses: actions/setup-python@v2 |
| 28 | + with: |
| 29 | + python-version: ${{ matrix.python-version }} |
| 30 | + |
| 31 | + - name: Display Python version |
| 32 | + run: python -c "import sys; print(sys.version)" |
| 33 | + |
| 34 | + - name: Check licenses |
| 35 | + run: source .github/workflows/check_license.sh |
| 36 | + |
| 37 | + - name: Check Python scripts |
| 38 | + run: source .github/workflows/check_python_script.sh |
| 39 | + |
| 40 | + - name: Check Python formatting |
| 41 | + run: | |
| 42 | + pip install black |
| 43 | + black --check . |
| 44 | +
|
| 45 | + - name: Install Tox and any other packages |
| 46 | + run: pip install tox |
| 47 | + |
| 48 | + - name: Build package and run tests with Tox |
| 49 | + run: tox -e py |
0 commit comments