Skip to content

Commit 0b0fa56

Browse files
committed
Test on windows
1 parent b5e9446 commit 0b0fa56

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/test.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,36 @@ jobs:
3030
image: danielflook/python-minifier-build:${{ matrix.python }}-2024-09-15
3131
run: |
3232
tox -r -e $(echo "${{ matrix.python }}" | tr -d .)
33+
34+
test-windows:
35+
name: Test Windows
36+
runs-on: windows-latest
37+
steps:
38+
- name: Checkout
39+
uses: actions/checkout@v4.2.2
40+
with:
41+
fetch-depth: 1
42+
show-progress: false
43+
persist-credentials: false
44+
45+
- name: Set up Python
46+
uses: actions/setup-python@v5
47+
with:
48+
python-version: '3.11'
49+
50+
- name: Set version statically
51+
shell: powershell
52+
run: |
53+
$content = Get-Content setup.py
54+
$content = $content -replace "setup_requires=.*", "version='0.0.0',"
55+
$content = $content -replace "use_scm_version=.*", ""
56+
Set-Content setup.py $content
57+
58+
- name: Install dependencies
59+
run: |
60+
python -m pip install --upgrade pip
61+
pip install tox
62+
63+
- name: Run tests
64+
run: |
65+
tox -r -e python311

0 commit comments

Comments
 (0)