diff options
author | Daniel Alley <dalley@redhat.com> | 2020-12-23 23:22:36 +0300 |
---|---|---|
committer | Lukáš Hrázký <lukkash@email.cz> | 2021-03-08 18:03:34 +0300 |
commit | 30cc5f96003c816cd33f048804d2103ecc81711e (patch) | |
tree | 9461922ef2c81c476ae955f506edc6af5db3956f /.github | |
parent | 6cd11f7f33ab577aec8e1148a665ac71df11cf54 (diff) |
Add Github Actions CI
closes #145
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/python_ci.yml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/.github/workflows/python_ci.yml b/.github/workflows/python_ci.yml new file mode 100644 index 0000000..09acb1f --- /dev/null +++ b/.github/workflows/python_ci.yml @@ -0,0 +1,26 @@ +--- +name: Python CI +on: [push, pull_request] + +jobs: + python-build: + name: Python Build + runs-on: ubuntu-latest + container: fedora:latest + steps: + - uses: actions/checkout@v2 + + - name: Install dependencies + run: | + sudo dnf -y install dnf-plugins-core + sudo dnf -y builddep createrepo_c.spec + pip install pytest scikit-build + + - name: Compile + run: python3 setup.py bdist_wheel + + - name: Install + run: pip install dist/*.whl + + - name: Test + run: pytest --verbose --color=yes tests/python/tests/ |