Skip to content

Commit

Permalink
add test for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
bjia56 committed Sep 26, 2023
1 parent c9d4fa8 commit 8145506
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/build_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
./bin/python -m test || true
build_windows:
name: Windows x86_64 ${{ inputs.python_version }}
name: Windows x86_64 ${{ inputs.python_version }} (build)
runs-on: windows-latest

steps:
Expand All @@ -105,3 +105,26 @@ jobs:
with:
name: python
path: ./*python*.tar.gz

test_windows:
name: Windows x86_64 ${{ inputs.python_version }} (test)
needs: build_windows
runs-on: windows-latest

steps:
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: python
path: ./python/

- name: Test python in clean environment
shell: bash
run: |
tar -xvf python/python-${{ inputs.python_version }}-windows-x86_64.tar.gz
cd python-${{ inputs.python_version }}-windows-x86_64
bin/python --version
# make tests nonfatal for now
./bin/python -m test || true

0 comments on commit 8145506

Please sign in to comment.