Skip to content

Commit

Permalink
out with Travis, in with Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ntamas committed Apr 8, 2021
1 parent bbc40d7 commit 621d788
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 20 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Python package

on:
- push
- pull_request

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [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
pip install tox tox-gh-actions
- name: Test with tox
run: tox

20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

7 changes: 7 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
[tox]
envlist = py37, py38, py39, pypy3

[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
pypy-3: pypy3

[testenv]
commands =
python -m unittest
Expand Down

0 comments on commit 621d788

Please sign in to comment.