Skip to content

Merge branch 'main' of github.com:HelmholtzAI-Consultants-Munich/Effi… #23

Merge branch 'main' of github.com:HelmholtzAI-Consultants-Munich/Effi…

Merge branch 'main' of github.com:HelmholtzAI-Consultants-Munich/Effi… #23

Workflow file for this run

name: test
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
workflow_call:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 12
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
python-version: ["3.10"]
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install pip dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
pip install coverage
pip install -e .
- name: Test with pytest
run: |
coverage run -m pytest
coverage xml -i
env:
PLATFORM: ${{ matrix.os }}
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
files: src/client/coverage.xml
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}