Skip to content

Commit ff41f99

Browse files
committed
ci: split the test.yml workflow into test.yml and lint.yml
Modified test.yml to pull the needed docker images.
1 parent fcb6bec commit ff41f99

File tree

2 files changed

+25
-6
lines changed

2 files changed

+25
-6
lines changed

.github/workflows/lint.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: 'lint'
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
lint:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Install dependencies
12+
run: |
13+
pip install pycodestyle
14+
pip install pylint
15+
pip install .
16+
- name: Lint
17+
run: |
18+
pycodestyle fpga examples test
19+
pylint fpga

.github/workflows/test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ jobs:
1717
python-version: ${{ matrix.python-version }}
1818
- name: Install dependencies
1919
run: |
20-
pip install pycodestyle
21-
pip install pylint
2220
pip install pytest
2321
pip install .
24-
- name: Lint
22+
- name: Pull container images
2523
run: |
26-
pycodestyle fpga examples test
27-
pylint fpga
28-
git diff --check --cached
24+
docker pull hdlc/prjtrellis
25+
docker pull hdlc/ghdl:yosys
26+
docker pull hdlc/icestorm
27+
docker pull hdlc/nextpnr:ecp5
28+
docker pull hdlc/nextpnr:ice40
2929
- name: Test
3030
run: |
3131
pytest

0 commit comments

Comments
 (0)