| 1 |
--- |
| 2 |
name: Python CI |
| 3 |
on: pull_request |
| 4 |
|
| 5 |
jobs: |
| 6 |
python-build: |
| 7 |
name: Python Build |
| 8 |
runs-on: ubuntu-latest |
| 9 |
container: fedora:latest |
| 10 |
steps: |
| 11 |
- uses: actions/checkout@v2 |
| 12 |
|
| 13 |
- name: Install dependencies |
| 14 |
run: | |
| 15 |
sudo dnf -y install dnf-plugins-core python3-pip |
| 16 |
sudo dnf -y builddep createrepo_c.spec |
| 17 |
pip install --upgrade pip |
| 18 |
pip install pytest |
| 19 |
|
| 20 |
- name: Compile and Install |
| 21 |
run: pip install . |
| 22 |
|
| 23 |
- name: Test |
| 24 |
run: pytest --verbose --color=yes tests/python/tests/ |