From e0faba4eadc1ec110db0ba67534be57f6394125b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Grzegorz=20=C5=9Aliwi=C5=84ski?= Date: Thu, 6 May 2021 14:40:33 +0200 Subject: [PATCH] Windows support --- .github/workflows/tests-windows.yml | 47 +++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/tests-windows.yml diff --git a/.github/workflows/tests-windows.yml b/.github/workflows/tests-windows.yml new file mode 100644 index 00000000..4be122f5 --- /dev/null +++ b/.github/workflows/tests-windows.yml @@ -0,0 +1,47 @@ +name: Run tests on Windows + +on: + push: + branches: [ master ] + paths: + - '**.py' + - .github/workflows/tests-windows.yml + - requirements-test.txt + pull_request: + branches: [ master ] + paths: + - '**.py' + - .github/workflows/tests-windows.yml + - requirements-test.txt + +jobs: + windowstests: + runs-on: windows-latest + strategy: + fail-fast: false + matrix: + python-version: [3.8, 3.9] + env: + OS: windows-latest + PYTHON: ${{ matrix.python-version }} + + 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 dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements-test.txt + - name: Run test + run: | + py.test --cov-report=xml + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v1 + with: + file: ./coverage.xml + flags: macos + env_vars: OS, PYTHON, POSTGRES + fail_ci_if_error: true