Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Merge pull request #13 from cfe-lab/ReformatBBLabAlleles #42

Merge pull request #13 from cfe-lab/ReformatBBLabAlleles

Merge pull request #13 from cfe-lab/ReformatBBLabAlleles #42

Workflow file for this run

name: test
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
concurrency:
group: test-${{ github.head_ref }}
cancel-in-progress: true
env:
PYTHONUNBUFFERED: "1"
FORCE_COLOR: "1"
jobs:
run:
name: Python ${{ matrix.python-version }} Tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.10", "3.11", "3.12", "3.x"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
apt update && apt install yamllint
pip install uv
- name: Check code
continue-on-error: true
run: |
yamllint .
uv run mypy --check .
uv run ruff check .
- name: Run tests
run: uv run pytest --junitxml=pytest.xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
# - name: Publish Test Report
# uses: mikepenz/action-junit-report@v5
# if: success() || failure()
# with:
# report_paths: pytest.xml
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}