Merge branch 'master' into factor_value_lists #57
Workflow file for this run
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: CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: | |
- '3.8' | |
- '3.9' | |
- '3.10' | |
- '3.11' | |
steps: | |
- name: Install Python via conda. | |
uses: s-weigand/setup-conda@v1 | |
with: | |
python-version: ${{ matrix.python-version }} | |
conda-channels: defaults,bioconda,conda-forge | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
lfs: true | |
- name: Install mamba. | |
run: conda install -y mamba | |
- name: Install test dependencies via pip | |
run: pip install -r requirements/test_black.txt | |
- name: Run tests | |
run: pytest | |
- name: Create text report | |
run: coverage report | |
- name: Create XML report for codacy | |
run: coverage xml | |
- name: Coveralls | |
uses: AndreMiras/coveralls-python-action@develop | |
- name: Run codacy-coverage-reporter | |
uses: codacy/codacy-coverage-reporter-action@master | |
with: | |
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
coverage-reports: coverage.xml | |
if: ${{ matrix.python-version == '3.7' }} | |
- name: Check style with black | |
run: make black-check | |
- name: Check style with flake8 | |
run: flake8 . |