File: build-test.yml

package info (click to toggle)
python-pysnmp4 7.1.22-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,504 kB
  • sloc: python: 33,673; makefile: 169; javascript: 4
file content (50 lines) | stat: -rw-r--r-- 1,407 bytes parent folder | download
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: CI

on:
  push:
    branches:
      - "main"
      - "release-*"
  pull_request:
    branches: [main]

jobs:
  build:
    name: build
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [ubuntu-latest, windows-latest, macos-latest]
        python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
    steps:
      - uses: actions/checkout@v4
      - name: Setup python
        uses: actions/setup-python@v5
        with:
          python-version: ${{ matrix.python-version }}
          cache: 'pip'
      - name: Build
        run: |
          pip install uv
          uv venv
          uv pip install -e .[dev]
      - name: Test
        run: |
          uv run mibdump --generate-mib-texts NET-SNMP-EXAMPLES-MIB
          uv run mibdump --generate-mib-texts IF-MIB
          uv run mibdump --generate-mib-texts LEXTUDIO-TEST-MIB
          uv run mibdump --generate-mib-texts CISCO-ENHANCED-IPSEC-FLOW-MIB
          uv run pytest --junitxml=junit/test-results-${{ matrix.python-version }}.xml --cov=com --cov-report=xml --cov-report=html
      - name: Test summary
        uses: test-summary/action@v2
        with:
          paths: "junit/*.xml"
        if: always()
      # - uses: actions/upload-artifact@v4
      #   with:
      #     name: dist
      #     path: dist
      # - uses: actions/upload-artifact@v4
      #   with:
      #     name: output
      #     path: output