Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds workflow to run tests via github actions on pushes. Drops travis CI config.
- Loading branch information
Showing
3 changed files
with
31 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ flake8: | |
flake8 . | ||
|
||
check: | ||
pytest | ||
pytest --verbosity=2 | ||
|
||
cov: | ||
coverage erase | ||
|