Skip to content

Commit bda5974

Browse files
authored
[BRE-783] Test workflow linter with Windows runner (#104)
* adding a windows runner to test changes to actionlint * updating Pipfile for Windows dependencies
1 parent f9ebefe commit bda5974

File tree

3 files changed

+680
-596
lines changed

3 files changed

+680
-596
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Test Actionlint on Windows
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
paths:
8+
- "**/run_actionlint.py"
9+
- "**/actionlint_windows.yml"
10+
11+
jobs:
12+
test:
13+
name: Windows workflow-linter (v2)
14+
runs-on: windows-2022
15+
steps:
16+
- name: Check out repo
17+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
18+
19+
- name: Set up Python
20+
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
21+
with:
22+
python-version-file: ".python-version"
23+
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install pipenv
28+
pipenv install --dev
29+
30+
- name: Install bwwl binary
31+
run: python -m pip install --upgrade .
32+
33+
- name: Lint
34+
run: bwwl lint -f .github/workflows

Pipfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pytest = "*"
1616
coverage = "*"
1717
pytest-cov = "*"
1818
pylint = "*"
19-
pytype = "*"
19+
pytype = {version = "*", sys_platform = "!= 'win32'"}
2020
hatchling = "*"
2121
build = "*"
2222

0 commit comments

Comments
 (0)