Skip to content

Commit

Permalink
Merge pull request #2 from JanPalasek/issue_1/ci
Browse files Browse the repository at this point in the history
Issue #1 - added github actions support.
  • Loading branch information
JanPalasek authored Feb 19, 2022
2 parents 5176839 + 9ec8118 commit a7f2a7b
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Test

on:
- push
- pull_request

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9']

steps:
- uses: actions/checkout@v1
- 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
python -m pip install tox tox-gh-actions
- name: Test with tox
run: tox
7 changes: 7 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
[tox]
envlist = py36,py37,py38,py39

[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39

[testenv]
# install pytest in the virtualenv where commands will be executed
deps =
Expand Down

0 comments on commit a7f2a7b

Please sign in to comment.