Skip to content

Commit

Permalink
run tests with github actions
Browse files Browse the repository at this point in the history
Adds workflow to run tests via github actions on pushes.
Drops travis CI config.
  • Loading branch information
elmjag committed Sep 12, 2023
1 parent fa2b4b5 commit 11b1300
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 20 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/tests.yml
@@ -0,0 +1,30 @@
name: Tests
on: [push, workflow_dispatch]
jobs:
Python:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3

#
# it seems we can't get access to system-site-packages when running tests,
# https://github.com/actions/setup-python/issues/178
# don't waste time installing gcab deb packages
#
#
# - name: install gcab packages
# run: sudo apt-get update && sudo apt-get install -y gir1.2-gcab-1.0 python-gi
#
- name: set up python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: install symstore package
run: pip install -e .[dev]

- name: run tests
run: make
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -4,7 +4,7 @@ flake8:
flake8 .

check:
pytest
pytest --verbosity=2

cov:
coverage erase
Expand Down

0 comments on commit 11b1300

Please sign in to comment.