Skip to content

Merge pull request #153 from okp4/dependabot/github_actions/wagoid/co… #295

Merge pull request #153 from okp4/dependabot/github_actions/wagoid/co…

Merge pull request #153 from okp4/dependabot/github_actions/wagoid/co… #295

Workflow file for this run

name: Test
on:
workflow_call:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: test-${{ github.ref }}
cancel-in-progress: true
jobs:
test-python:
timeout-minutes: 30
runs-on: ubuntu-22.04
steps:
- name: Check out repository
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install Python Poetry
uses: abatilo/[email protected]
with:
poetry-version: 1.3.1
- name: Install project dependencies
run: |
poetry install
- name: Run unit tests
run: |
poetry run pytest -v --cov=./ --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
if: github.actor != 'dependabot[bot]'
with:
files: ./coverage.xml
env_vars: OS,PYTHON
fail_ci_if_error: true
verbose: true