Skip to content

use conda in testing #29

use conda in testing

use conda in testing #29

Workflow file for this run

name: unittests
on: push
jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: prodigy-cryst
environment-file: environment.yml
python-version: 3.9
auto-activate-base: false
- name: Test
run: |
pytest --cov --cov-report=term-missing --cov-append -vv --hypothesis-show-statistics .
coverage xml
- name: Run codacy-coverage-reporter
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage.xml
- uses: codecov/codecov-action@v3
with:
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml