Skip to content

Commit

Permalink
Merge 6561236 into 00a0975
Browse files Browse the repository at this point in the history
  • Loading branch information
dansondergaard committed Nov 27, 2020
2 parents 00a0975 + 6561236 commit 9845b2a
Show file tree
Hide file tree
Showing 5 changed files with 218 additions and 413 deletions.
54 changes: 39 additions & 15 deletions .github/workflows/test.yml
@@ -1,22 +1,46 @@
name: Run tests

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
paths:
- '.github/workflows/test.yml'
- '**.py'
push:
paths:
- '.github/workflows/test.yml'
- '**.py'

jobs:
build:
runs-on: ubuntu-latest
test:
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: [macOS]
python_version: ['3.6', '3.7', '3.8']

steps:
- uses: actions/checkout@1.0.0
- uses: excitedleigh/setup-nox@0.1.0
- name: Run tests
run: nox
- name: Submit coverage results
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: |
pip install coveralls
coveralls
- uses: actions/checkout@v1

- uses: actions/setup-python@v1
name: Install Python ${{ matrix.python_version }}
with:
python-version: ${{ matrix.python_version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install nox
shell: bash

- name: Run tests
run: |
python -m nox -s test-${{ matrix.python_version }}
shell: bash

- name: Submit coverage results
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: |
pip install coveralls
coveralls
1 change: 1 addition & 0 deletions requirements-dev.in
@@ -1,3 +1,4 @@
-c requirements.txt
coverage
coveralls
flake8
Expand Down

0 comments on commit 9845b2a

Please sign in to comment.