forked from etingof/pysnmp
-
-
Notifications
You must be signed in to change notification settings - Fork 26
44 lines (42 loc) · 952 Bytes
/
build-test.yml
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
name: CI
on:
push:
branches:
- "main"
- "develop"
- "python-12"
pull_request:
branches: [main, develop]
jobs:
build:
name: build
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.12']
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Run image
uses: abatilo/[email protected]
with:
poetry-version: "1.6.1"
- name: Build
run: |
poetry install
poetry build
- name: Test
run: |
poetry run mibdump NET-SNMP-EXAMPLES-MIB
poetry run pytest
- uses: actions/[email protected]
with:
name: dist
path: dist
- uses: actions/[email protected]
with:
name: output
path: output