Skip to content

Commit de0c3a1

Browse files
artemrysArtem Rys
authored andcommitted
ci: add actionlint check
1 parent fe20f5c commit de0c3a1

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.github/workflows/build-test-release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ jobs:
1515
- uses: actions/setup-python@v2
1616
with:
1717
python-version: "3.7"
18+
- name: Install actionlint
19+
run: |
20+
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/v1.6.3/scripts/download-actionlint.bash)
1821
- uses: pre-commit/[email protected]
1922
test-unit:
2023
name: Unit tests on ${{ matrix.platform }} using Python ${{ matrix.python-version }}
@@ -37,10 +40,12 @@ jobs:
3740
run: curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3 -
3841
- name: Install Code
3942
run: |
43+
# shellcheck disable=SC1090
4044
source "$HOME/.poetry/env"
4145
poetry install
4246
- name: Run pytest
4347
run: |
48+
# shellcheck disable=SC1090
4449
source "$HOME/.poetry/env"
4550
poetry run pytest --junitxml=test-results/junit.xml
4651
- uses: actions/upload-artifact@v2

.pre-commit-config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,12 @@ repos:
4444
rev: 4.0.1
4545
hooks:
4646
- id: flake8
47+
- repo: local
48+
hooks:
49+
- id: actionlint
50+
name: actionlint
51+
entry: actionlint
52+
args: [-ignore, 'property ".+" is not defined in object type']
53+
language: script
54+
types: ["yaml"]
55+
files: ^.github/workflows/

0 commit comments

Comments
 (0)