Skip to content

Ci jobs

Ci jobs #3

Workflow file for this run

name: CI
on:
workflow_dispatch:
pull_request:
push:
branches: [next]
tags: ['v*']
jobs:
tests:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
- uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment.yml
- name: pre-commit
run: pre-commit run --all-files
- name: Install histogram
run: python -m pip install -e . --no-deps
- name: Run tests
run: xvfb-run --server-args="-screen 0 1920x1080x24" -a python -m pytest --cov=src --cov-report=xml --cov-report=term
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3