Skip to content

Commit

Permalink
Add windows-tests workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderwerning committed Feb 11, 2022
1 parent 608cbfd commit 5f77401
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/windows-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Tests Windows

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: windows-latest
strategy:
matrix:
python-version: [3.8] # Test only one Python Version for Windows

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

- name: Install python dependencies
run: |
python -m pip install --upgrade pip
pip install numpy scipy Cython
pip install flake8 pytest pytest-cov codecov
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install --editable .[all]
- name: Lint with flake8
run: |
# stop the build if there are Python syntax error or undefined names
#flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
#flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest -v "tests/" "padertorch/"
python -m coverage xml --include="padertorch*"
- name: Codecov
run: |
codecov

0 comments on commit 5f77401

Please sign in to comment.