Skip to content

Commit 11e0d50

Browse files
committed
Update linting action
1 parent 805b153 commit 11e0d50

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
id: cache
3737
with:
3838
path: venv
39-
key: docs-venv-v6-${{ hashFiles(env.REQUIREMENTS) }}
39+
key: docs-venv-v7-${{ hashFiles(env.REQUIREMENTS) }}
4040

4141
- name: Build virtualenv
4242
if: steps.cache.outputs.cache-hit != 'true'

.github/workflows/tests.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ on:
88
jobs:
99
pre-commit:
1010
name: Lint
11-
runs-on: ubuntu-18.04
11+
runs-on: ubuntu-latest
1212
steps:
1313
- name: Cancel Previous Runs
14-
uses: styfle/cancel-workflow-action@0.10.0
14+
uses: styfle/cancel-workflow-action@0.11.0
1515
with:
1616
access_token: ${{ github.token }}
1717
- uses: actions/checkout@v3
@@ -21,9 +21,8 @@ jobs:
2121
- name: install clang-format
2222
if: steps.clang_format.outputs.cache-hit != 'true'
2323
run: |
24-
sudo apt-get remove -y clang-6.0 libclang-common-6.0-dev libclang1-6.0 libllvm6.0
25-
sudo apt-get autoremove
26-
sudo apt-get install clang-format clang-format-6.0
24+
sudo pip install clang-format==6.0.1
25+
sudo ln -s /usr/local/bin/clang-format /usr/local/bin/clang-format-6.0
2726
- uses: pre-commit/[email protected]
2827

2928
benchmark:

0 commit comments

Comments
 (0)