Seqera suggestions #68
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: Tostadas CI | |
on: | |
pull_request: | |
types: [opened, reopened] | |
branches: [master, dev] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
- name: Set Up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.9' | |
- name: Install Mambaforge | |
run: | | |
curl -L -O https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-$(uname)-$(uname -m).sh | |
bash Mambaforge-$(uname)-$(uname -m).sh -b -p $HOME/mambaforge | |
export PATH="$HOME/mambaforge/bin:$PATH" | |
- name: Create Environment and Run Tests | |
run: | | |
source $HOME/mambaforge/etc/profile.d/conda.sh | |
conda activate | |
mamba env create -f tests/test_env.yml | |
conda activate tostadas_tests | |
pytest -p no:warnings tests/test_main.py |