Skip to content

ci(test): now make use of coveralls #55

ci(test): now make use of coveralls

ci(test): now make use of coveralls #55

Workflow file for this run

name: Test code
on: [push, pull_request]
jobs:
Test:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install regular dependencies with conda
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-version: "latest"
environment-file: environment.yml
activate-environment: test-env
conda-remove-defaults: "true"
- name: Install as package
run: |
pip -v install --no-deps --editable .
- name: Install dependencies for testing
run: |
conda install --channel conda-forge pytest
pip install coveralls
- name: Run tests
run: |
coverage run -m pytest tests
- name: Report using coveralls
run: |
coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}