Skip to content

Commit

Permalink
[feat]: Setting up test environment for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
hentt30 committed May 6, 2021
1 parent 5f6724f commit 0e0e3df
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ name: Python package
on: [push]

jobs:
test:
runs-on: ${{ matrix.os }}
test-ubuntu:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python: [3.6, 3.7, 3.8]

steps:
Expand All @@ -18,6 +17,30 @@ jobs:
python-version: ${{ matrix.python }}
- name: Install Tox and any other packages
run: pip install tox

- name: Run Tox
# Run tox using the version of Python in `PATH`
run: tox -e py

test-windows:
runs-on: windows-latest
strategy:
matrix:
python: [3.6, 3.7, 3.8]

steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install Tox and any other packages
run: pip install tox

- name: Setting up windows
run: echo "[build]`ncompiler=mingw32" | Out-File -Encoding ASCII ~/pydistutils.cfg
shell: powershell

- name: Run Tox
# Run tox using the version of Python in `PATH`
run: tox -e py

0 comments on commit 0e0e3df

Please sign in to comment.