Skip to content

Commit

Permalink
Add windows unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
siboehm committed Jun 26, 2021
1 parent 1080d87 commit 7045e7c
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI
on: [push, pull_request]

jobs:
unittest:
linux-unittest:
name: Unit tests - ${{ matrix.PYTHON_VERSION }}
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -41,6 +41,31 @@ jobs:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

win-unittest:
name: "Windows Py${{ matrix.PYTHON_VERSION }}"
runs-on: windows-latest
env:
CI: True
PYTHON_VERSION: ${{ matrix.PYTHON_VERSION }}
strategy:
fail-fast: false
matrix:
PYTHON_VERSION: ['3.6']
steps:
- name: Checkout branch
uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.PYTHON_VERSION }}
miniforge-variant: Mambaforge
miniforge-version: latest
activate-environment: lleaves
environment-file: environment.yml
use-only-tar-bz2: true
use-mamba: true
- run: python -m pip install -e . --no-build-isolation --no-use-pep517 --no-deps
- run: pytest -v tests

pre-commit-checks:
name: "Pre-commit checks - Python 3.9"
runs-on: ubuntu-latest
Expand All @@ -54,4 +79,4 @@ jobs:
with:
python-version: 3.9
- name: Run pre-commit checks
uses: pre-commit/action@v2.0.0
uses: pre-commit/action@v2.0.0

0 comments on commit 7045e7c

Please sign in to comment.