Skip to content

Modify environment.yml #10

Modify environment.yml

Modify environment.yml #10

Workflow file for this run

on:
pull_request:
branches: [ "main" ]
jobs:
tests:
name: Tests (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -el {0}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.9"]
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: cyto_39
environment-file: environment.yml
python-version: ${{ matrix.python-version }}
auto-activate-base: false
- run: pip install pytest-cov
- run: python -m pytest --cov=cyto_ml --cov-report xml:coverage.xml
- uses: actions/upload-artifact@v4
with:
name: coverage.xml
path: coverage.xml
coverage:
needs: tests
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: coverage.xml
- name: Test coverage report
uses: orgoro/coverage@v3.1
with:
coverageFile: coverage.xml
token: ${{ secrets.GITHUB_TOKEN }}