Skip to content

Commit

Permalink
update testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jodyphelan committed Apr 29, 2024
1 parent 892193b commit b8e8a34
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 55 deletions.
54 changes: 0 additions & 54 deletions .github/workflows/docs.yml

This file was deleted.

42 changes: 42 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# 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:
pull_request:
branches: [ "master" ]

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
python-version: 3.8
mamba-version: "*"
channels: conda-forge,bioconda,defaults
channel-priority: true

- name: install dependancies
run: |
mamba create -n test tb-profiler -y
- name: Install dependencies
run: |
conda activate test
pip install --force-reinstall .
- name: Run tests
run: |
cd tests
mamba install pytest -y
pytest -x .
3 changes: 2 additions & 1 deletion tests/run_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@
]

db = 'testdb'
branch = 'who'

def test_db():
run_cmd(f"tb-profiler update_tbdb --branch test --prefix {db}")
run_cmd(f"tb-profiler update_tbdb --branch {branch} --prefix {db}")


def check_assertations(filename):
Expand Down

0 comments on commit b8e8a34

Please sign in to comment.