Skip to content

Tests

Tests #348

Workflow file for this run

name: Tests
on:
push: ~
pull_request: ~
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10 # Don't run forever when stale
strategy:
matrix:
python-version:
- '3.10'
- '3.11'
- '3.12'
- '3.13'
- '3.14'
name: Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v6
- name: Build container image
run: |
docker build \
--build-arg PYTHON_VERSION=${{ matrix.python-version }} \
-f .github/container/Containerfile-CI \
-t dsmr-parser-test \
.
- name: Run tests in container
run: |
docker run --name test-container \
dsmr-parser-test
- name: Export coverage from container
run: |
docker cp test-container:/app/coverage.xml coverage.xml
docker rm test-container
- name: Code coverage upload
uses: codecov/codecov-action@v6
with:
files: coverage.xml