Skip to content

Commit

Permalink
add ci
Browse files Browse the repository at this point in the history
  • Loading branch information
mib1185 committed Feb 12, 2022
1 parent b29dacd commit 3f9bafe
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Tests

on:
push:
branches:
- master
pull_request: ~

jobs:
tests:
name: Python ${{ matrix.python-version }}
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]

steps:
- uses: actions/checkout@master

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

- name: Install dependencies
run: pip install -r requirements_test.txt

- name: Test
run: tox -e py36,py37,py38,py39,py310

cov_docs:
name: Coverage and Doc tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master

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

- name: Install dependencies
run: pip install -r requirements_test.txt

- name: Test
run: tox -e doc,cov

0 comments on commit 3f9bafe

Please sign in to comment.