Skip to content
This repository has been archived by the owner on Feb 17, 2021. It is now read-only.

Commit

Permalink
Merge pull request #30 from staticdev/windows
Browse files Browse the repository at this point in the history
Added windows tests
  • Loading branch information
Thiago C. D'Ávila authored May 17, 2020
2 parents 203e26b + c986ad2 commit 554f363
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 13 deletions.
1 change: 0 additions & 1 deletion .github/workflows/constraints.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
pip==20.1
nox==2019.11.9
poetry==1.0.5
pre-commit==2.3.0
4 changes: 3 additions & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
name: Coverage

on: [push, pull_request]

jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/setup-python@v1.2.0
- uses: actions/setup-python@v2
with:
python-version: "3.8"
- run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/setup-python@v1.2.0
- uses: actions/setup-python@v2
with:
python-version: "3.8"
- run: |
Expand Down
42 changes: 33 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,43 @@
name: Tests

on: [push, pull_request]

jobs:
tests:
name: Tests (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest"]
python-version: ["3.7", "3.8"]
runs-on: ${{ matrix.os }}
name: Python ${{ matrix.python-version }} (${{ matrix.os }})
include:
- { python-version: 3.8, os: ubuntu-latest }
# - { python-version: 3.8, os: windows-latest }
- { python-version: 3.8, os: macos-latest }
- { python-version: 3.7, os: ubuntu-latest }
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
- name: Check out the repository
uses: actions/[email protected]

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

- name: Upgrade pip
run: |
pip install --constraint=.github/workflows/constraints.txt pip
pip install --constraint=.github/workflows/constraints.txt nox poetry
- run: nox --force-color
pip --version
- name: Install Poetry
run: |
pip install --constraint=.github/workflows/constraints.txt poetry
poetry --version
- name: Install Nox
run: |
pip install --constraint=.github/workflows/constraints.txt nox
nox --version
- name: Run Nox
run: |
nox --force-color
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0
rev: v3.0.1
hooks:
- id: check-toml
- id: check-yaml
Expand Down

0 comments on commit 554f363

Please sign in to comment.