tox config

This commit is contained in:
Bryan Bailey
2022-03-31 11:00:32 -04:00
parent e8ddad67ab
commit db9cce5ac2
2 changed files with 31 additions and 1 deletions

26
.github/workflows/tests.yml vendored Normal file
View File

@@ -0,0 +1,26 @@
name: Tests
on:
- push
- pull_request
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ['3.8', '3.9']
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 tox tox-gh-actions
- name: Test with tox
run: tox

View File

@@ -1,8 +1,12 @@
[tox] [tox]
minversion = 3.8.0 minversion = 3.8.0
envlist = py39 envlist = py38, py39
isolated_build = true isolated_build = true
[gh-actions]
python =
3.8: py38
3.9: py39
[testenv] [testenv]
setenv = setenv =