Skip to content

Commit d49f12d

Browse files
authored
Create python test workflow
1 parent 5a539e3 commit d49f12d

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/python-app.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# This workflow will install Python dependencies, run tests and lint with a single version of Python
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3+
4+
name: Python application
5+
6+
on:
7+
push:
8+
branches: [ "master" ]
9+
pull_request:
10+
branches: [ "master" ]
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
build:
17+
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- uses: actions/checkout@v3
22+
- name: Set up miniconda
23+
run: |
24+
wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh
25+
bash -b Miniforge3-Linux-x86_64.sh
26+
~/miniforge3/condabin/conda init
27+
source .bashrc
28+
conda config --add channels defaults
29+
conda config --add channels bioconda
30+
conda config --add channels conda-forge
31+
conda config --set channel_priority strict
32+
- name: install dependancies
33+
run: |
34+
mamba install tb-profiler -y
35+
36+
- name: Install dependencies
37+
run: |
38+
pip install .

0 commit comments

Comments
 (0)