File: ci-python.yml

package info (click to toggle)
createrepo-c 1.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,704 kB
  • sloc: ansic: 31,242; python: 4,867; xml: 2,669; sh: 367; makefile: 26; perl: 7
file content (24 lines) | stat: -rw-r--r-- 552 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---
name: Python CI
on: 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 python3-pip
          sudo dnf -y builddep createrepo_c.spec
          pip install --upgrade pip
          pip install pytest

      - name: Compile and Install
        run: pip install .

      - name: Test
        run: pytest --verbose --color=yes tests/python/tests/