Js/implement unit tests #14
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: Run Unit Tests | |
# Trigger the action on push or pull request | |
on: | |
# TODO: Specify appropriate branches | |
push: | |
branches: | |
- js/implement_unit_tests | |
pull_request: | |
branches: | |
- dev_push | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
# Check out repository | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
# Set up Python | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
# Install dependencies | |
- name: Install dependencies | |
run: | | |
# $CONDA is an environment variable pointing to the root of the miniconda directory | |
$CONDA/bin/conda env update --file tools/code/rdl-tools.yml --name base | |
- name: Test with pytest | |
run: | | |
conda install pytest | |
$CONDA/bin/pytest |