File: python-tests.yml

package info (click to toggle)
libeconf 0.8.3%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,736 kB
  • sloc: ansic: 7,624; python: 1,204; cs: 651; sh: 214; xml: 182; makefile: 7
file content (30 lines) | stat: -rw-r--r-- 602 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Execute tests

on:
  push:
    branches:
      - main
  pull_request:
    branches:
      - main
    paths:
      - bindings/python3/*

jobs:
  test:
    runs-on: ubuntu-latest
    container: registry.opensuse.org/opensuse/tumbleweed:latest
    steps:
    - name: Checkout repository
      uses: actions/checkout@v3

    - name: Setup libeconf
      run: |
        zypper ref
        zypper --non-interactive in libeconf0 python3 python3-pip python3-pytest

    - name: Install econf
      run: python3 -m pip install -e . --break-system-packages

    - name: Run tests
      run: pytest -v test/