Add github actions testing pipeline #7
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
on: | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
name: Pull Request | |
jobs: | |
test: | |
name: Run tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: create artifacts dir to save test logs | |
run: mkdir artifacts | |
- name: Install Miniconda | |
run: bash .github/scripts/install_conda.sh | |
- name: Install Nextflow | |
run: bash .github/scripts/install_nextflow.sh | |
- name: Create ART Read-Simulation Environment | |
run: bash .github/scripts/create_art_environment.sh | |
- name: Download Assemblies | |
run: bash .github/scripts/download_assemblies.sh | |
- name: Simulate Reads | |
run: conda init && source ~/.bashrc && conda activate art && bash ./github/scripts/simulate_reads.sh | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: test_artifacts | |
path: artifacts |