Skip to content

Commit 3eacddf

Browse files
authored
GH Actions fixes (#84)
* GH Actions: pin eslint to v8 * GH Actions: bump versions and configure concurrency
1 parent 3bcec78 commit 3eacddf

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

.github/workflows/test.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,37 +6,45 @@ on:
66
push:
77
branches: [master]
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
env:
14+
FORCE_COLOR: 2
15+
PS4: '[command]'
16+
917
jobs:
1018
test:
1119
runs-on: ubuntu-latest
1220
timeout-minutes: 5
1321
strategy:
1422
matrix:
15-
python-version: ['3.7', '3.9']
23+
python-version: ['3.7', '3']
24+
fail-fast: false
1625
env:
1726
PYTEST_ADDOPTS: --color=yes
1827
steps:
1928
- name: checkout
20-
uses: actions/checkout@v3
29+
uses: actions/checkout@v4
2130

2231
- name: eslint
23-
run: npx eslint .
32+
run: npx eslint@8 .
2433

2534
- name: configure python
26-
uses: actions/setup-python@v4
35+
uses: actions/setup-python@v5
2736
with:
2837
python-version: ${{ matrix.python-version }}
2938

3039
- name: install
3140
run: |
41+
set -x
3242
sudo apt-get install -y graphviz
3343
pip install git+https://github.com/cylc/cylc-flow/ # install latest cylc-flow
3444
pip install -e .[all]
3545
3646
- name: pycodestyle
37-
run: |
38-
pycodestyle .
39-
npx eslint cylc/
47+
run: pycodestyle .
4048

4149
- name: unittest
4250
run: |

0 commit comments

Comments
 (0)