Skip to content

Commit

Permalink
Enable github actions (#457)
Browse files Browse the repository at this point in the history
  • Loading branch information
epenet authored Apr 2, 2022
1 parent 1d6d41a commit 2e5d654
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Tests

on:
pull_request:
push:
branches:
- master

jobs:
tests:
name: Tox ${{ matrix.session }} session on Python ${{ matrix.python-version }}
runs-on: "ubuntu-latest"
strategy:
fail-fast: false
matrix:
include:
- { python-version: "3.9", session: "py39" }
- { python-version: "3.8", session: "py38" }
- { python-version: "3.7", session: "py37" }
- { python-version: "3.6", session: "py36" }

steps:
- name: Check out the repository
uses: actions/checkout@v3

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

- name: Install tox-setuptools-version
run: |
pip install tox-setuptools-version
- name: Run tox
run: |
pip install tox
tox -e ${{ matrix.session }}
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ exclude = .tox,.venv,build,*.egg
[testenv]
distribute = True
sitepackages = False
setuptools_version = setuptools<58.0
deps =
nose
nose-cover3
Expand Down

0 comments on commit 2e5d654

Please sign in to comment.