Skip to content

Merge branch 'main' of https://github.com/t-neumann/GenomicOps-MCP #1

Merge branch 'main' of https://github.com/t-neumann/GenomicOps-MCP

Merge branch 'main' of https://github.com/t-neumann/GenomicOps-MCP #1

Workflow file for this run

name: CI Tests
on:
push:
branches:
- main
- dev
pull_request:
workflow_dispatch:
jobs:
test:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install uv
run: pip install uv
- name: Install dependencies
run: uv sync --dev
- name: Run unit tests
run: |
mkdir -p test-results
uv run pytest \
-o log_cli=true --log-cli-level=INFO \
--junitxml=test-results/unit-tests.xml | tee test-results/unit.log
- name: Upload unit test results
if: always() # upload even if tests fail
uses: actions/upload-artifact@v4
with:
name: unit-test-results
path: test-results/
integration:
name: Integration Tests
runs-on: ubuntu-latest
needs: test
if: github.event_name == 'workflow_dispatch' || github.ref == 'refs/heads/main'
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install uv
run: pip install uv
- name: Install dependencies
run: uv sync --dev
- name: Run integration tests
run: |
mkdir -p test-results
uv run pytest --integration \
-o log_cli=true --log-cli-level=INFO \
--junitxml=test-results/integration-tests.xml | tee test-results/integration.log
- name: Upload integration test results
if: always()
uses: actions/upload-artifact@v4
with:
name: integration-test-results
path: test-results/