Skip to content

Commit

Permalink
run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
amva13 committed Feb 24, 2024
1 parent dfd8ad7 commit e297b15
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/conda-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions
# More info on Python, GitHub Actions, and Azure App Service: https://aka.ms/python-webapps-actions

name: Build Conda Environment And Run Python Tests

on:
push:
branches:
- main
- avelez-dev
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

defaults:
run:
shell: bash -l {0}

steps:
- uses: actions/checkout@v4

- name: Set up Python version
uses: actions/setup-python@v1
with:
python-version: '3.9'

- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
channels: bioconda, conda-forge, defaults
use-only-tar-bz2: true
auto-update-conda: true
auto-activate-base: true

- name: Create and start Conda environment. Run tests.
run: |
echo "Creating Conda Environment from environment.yml"
conda env create -f environment.yml
conda activate tdc-conda-env
python run_tests.py
conda deactivate

0 comments on commit e297b15

Please sign in to comment.