Skip to content

Commit 53a8f86

Browse files
committed
Update workflow
- Consolidate two OS into a single config. - Install package before calling test
1 parent e19786f commit 53a8f86

File tree

1 file changed

+6
-20
lines changed

1 file changed

+6
-20
lines changed

.github/workflows/workflow.yml

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@ on:
1919

2020

2121
jobs:
22-
linux-validate:
22+
validate:
2323
name: Validate on Linux - Python ${{ matrix.python }}
24-
runs-on: ubuntu-22.04
2524
strategy:
2625
matrix:
2726
python: [ '3.8', '3.12' ]
27+
os: [ 'ubuntu-22.04', 'windows-latest' ]
28+
runs-on: ${{ matrix.os }}
2829
steps:
2930
- uses: actions/checkout@v5
3031

@@ -33,24 +34,9 @@ jobs:
3334
with:
3435
python-version: ${{ matrix.python }}
3536
architecture: x64
36-
37-
- name: Run tests
38-
run: python tests/run_tests.py
39-
40-
windows-validate:
41-
name: Validate on Windows - Python ${{ matrix.python }}
42-
runs-on: windows-latest
43-
strategy:
44-
matrix:
45-
python: [ '3.7', '3.8', '3.12' ]
46-
steps:
47-
- uses: actions/checkout@v5
48-
49-
- name: Setup python
50-
uses: actions/setup-python@v6
51-
with:
52-
python-version: ${{ matrix.python }}
53-
architecture: x64
37+
38+
- name: Install patch_ng
39+
run: pip install .
5440

5541
- name: Run tests
5642
run: python tests/run_tests.py

0 commit comments

Comments
 (0)