Skip to content

Commit

Permalink
Merge pull request #100 from sbillinge/ci2
Browse files Browse the repository at this point in the history
activate the env before doing things in ci
  • Loading branch information
sbillinge authored Jul 29, 2023
2 parents 3cca714 + 5979e8c commit fb8b6f1
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,24 @@ jobs:

- name: install requirements
run: |
conda config --set always_yes yes --set changeps1 no
conda config --add channels conda-forge
conda activate test
conda install --file requirements.txt --file requirements-dev.txt
python -m pip install . --no-deps
- name: install the package
run: python -m pip install . --no-deps
- name: run the tests and check for test coverage
run: coverage run -m pytest

- name: generate the test coverage report and upload it to codecov
run: |
conda activate test
coverage run -m pytest
coverage report -m
codecov
- name: check the code style
run: flake8
run: |
conda activate test
flake8
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3

0 comments on commit fb8b6f1

Please sign in to comment.