Skip to content

Common name support in canonicalize_iupac #126

Common name support in canonicalize_iupac

Common name support in canonicalize_iupac #126

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Testing
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events to the main and dev branches
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
workflow_dispatch: # make is manually start-able
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "test"
test:
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v4
- name: Setup Miniforge
uses: conda-incubator/setup-miniconda@v3
with:
python-version: '3.9'
miniforge-version: latest
activate-environment: MPP
use-mamba: true
channels: conda-forge,defaults
channel-priority: strict
- name: Cache conda environment
uses: actions/cache@v3
with:
path: /usr/share/miniconda/envs/MPP
key: ${{ runner.os }}-conda-${{ hashFiles('pyproject.toml') }}
restore-keys: |
${{ runner.os }}-conda-
- name: Install environment
shell: bash -l {0}
run: |
python -m pip install --upgrade pip
python -m pip install --editable ".[all]"
pip install pytest pytest-cov
- name: Run tests
shell: bash -l {0}
run: |
cd tests
pytest --cov=../glycowork --cov-config=../.coveragerc --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
file: ./coverage.xml