fix: run notebooks workflow does not provide value and is causing pro… #341
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
# Github action for installing dependencies using conda enviroment dump, and | |
# running unit tests | |
name: Install dependencies and run unit tests using conda enviroment dump | |
on: | |
push: | |
branches: [ "*" ] | |
pull_request: | |
branches: [ "main" ] | |
permissions: | |
contents: read | |
jobs: | |
unit_tests: | |
runs-on: ubuntu-latest | |
# Conda needs a loggin shell to be able to run `conda activate` | |
defaults: | |
run: | |
shell: bash -el {0} | |
steps: | |
- uses: actions/checkout@v3 | |
# Activate the conda enviroment using the dump of the enviroment | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
activate-environment: squijano | |
environment-file: enviroment.yml | |
auto-activate-base: false | |
- name: Test with unitttest module | |
run: | | |
conda run python -m unittest src/test/*.py |