Skip to content

Commit

Permalink
Bumped CI dependencies. Added coverage report.
Browse files Browse the repository at this point in the history
  • Loading branch information
lextm authored Feb 14, 2024
1 parent 272f2c2 commit 66cd874
Showing 1 changed file with 22 additions and 13 deletions.
35 changes: 22 additions & 13 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ on:
push:
branches:
- "main"
- "develop"
# - "develop"
pull_request:
branches: [main, develop]
branches: [main]

jobs:
build:
Expand All @@ -17,13 +17,14 @@ jobs:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Run image
uses: abatilo/actions-poetry@v2.0.0
uses: abatilo/actions-poetry@v2
with:
poetry-version: "1.6.1"
- name: Build
Expand All @@ -33,12 +34,20 @@ jobs:
- name: Test
run: |
poetry run mibdump NET-SNMP-EXAMPLES-MIB
poetry run pytest
- uses: actions/[email protected]
poetry add --group dev pytest-cov
poetry run pytest --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html
- name: Upload pytest test results
uses: actions/upload-artifact@v4
with:
name: dist
path: dist
- uses: actions/[email protected]
with:
name: output
path: output
name: pytest-results-${{ matrix.python-version }}
path: junit/test-results-${{ matrix.python-version }}.xml
# Use always() to always run this step to publish test results when there are test failures
if: ${{ always() }}
# - uses: actions/upload-artifact@v4
# with:
# name: dist
# path: dist
# - uses: actions/upload-artifact@v4
# with:
# name: output
# path: output

0 comments on commit 66cd874

Please sign in to comment.