docs(README): refine badges #56
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |