Skip to content

Commit 5abcd31

Browse files
committed
ci: udpate
Signed-off-by: Unai Martinez-Corral <umartinezcorral@antmicro.com>
1 parent 35ab77e commit 5abcd31

File tree

1 file changed

+38
-22
lines changed

1 file changed

+38
-22
lines changed

.github/workflows/ci.yml

Lines changed: 38 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,49 @@
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+
os: ubuntu-latest
17+
python-version:
18+
- '3.6'
19+
- '3.7'
20+
- '3.8'
1321

1422
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

Comments
 (0)