Skip to content

Commit

Permalink
Merge pull request #845 from colin-pm/feature/build_test
Browse files Browse the repository at this point in the history
build-test: Fix windows job
  • Loading branch information
colin-pm committed Jul 29, 2022
2 parents 97a9fe0 + 146f865 commit e138eb7
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ on:
- develop

jobs:
build:
build-nix:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
os: [ubuntu-latest, macOS-latest, windows-latest]
os: [ubuntu-latest, macOS-latest]

steps:
- uses: actions/checkout@v3
Expand All @@ -36,3 +36,28 @@ jobs:
run: |
python setup.py sdist bdist_wheel
pip install dist/hvac-*.whl
build-windows:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]

steps:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and install wheel
run: |
python setup.py sdist bdist_wheel
pip install (get-item .\dist\hvac-*.whl)

0 comments on commit e138eb7

Please sign in to comment.