Skip to content

Github Actions

Github Actions #4

name: Simulation Bridge Coverage
on: [push, pull_request]
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install Poetry
run: |
python -m pip install --upgrade pip
curl -sSL https://install.python-poetry.org | python -
env:
POETRY_HOME: ${{ runner.temp }}/poetry
- run: echo "${{ runner.temp }}/poetry/bin" >> $GITHUB_PATH
- name: Install dependencies (dev incluse)
run: poetry install --with dev
- name: Run tests and generate coverage.xml
run: poetry run pytest
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
files: coverage.xml
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}