Skip to content

Commit f585105

Browse files
committed
ci: udpate
Signed-off-by: Unai Martinez-Corral <[email protected]>
1 parent 35ab77e commit f585105

File tree

1 file changed

+39
-22
lines changed

1 file changed

+39
-22
lines changed

.github/workflows/ci.yml

Lines changed: 39 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,50 @@
11
name: CI
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: '0 0 * * *'
48

59
jobs:
610
build:
711

812
runs-on: ubuntu-latest
913
strategy:
14+
fail-fast: false
1015
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'
1322

1423
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

Comments
 (0)