Skip to content

Commit

Permalink
Create python test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jodyphelan authored Mar 29, 2024
1 parent 5a539e3 commit d49f12d
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Python application

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up miniconda
run: |
wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh
bash -b Miniforge3-Linux-x86_64.sh
~/miniforge3/condabin/conda init
source .bashrc
conda config --add channels defaults
conda config --add channels bioconda
conda config --add channels conda-forge
conda config --set channel_priority strict
- name: install dependancies
run: |
mamba install tb-profiler -y
- name: Install dependencies
run: |
pip install .

0 comments on commit d49f12d

Please sign in to comment.