Skip to content

Commit

Permalink
tests: add tests with github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
a-r-j committed Aug 1, 2024
1 parent 8c3a428 commit c85c407
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: tests

on:
push:
paths-ignore:
- "README.md"
- "docs/**"
- "CHANGELOG.md"

pull_request:
paths-ignore:
- "README.md"
- "docs/*"
- "CHANGELOG.md"

jobs:
build_cpu:
runs-on: ubuntu-latest
# https://github.com/marketplace/actions/setup-miniconda#use-a-default-shell
defaults:
run:
shell: bash -l {0}

strategy:
matrix:
python-version: [3.7, 3.8, 3.9, "3.10", 3.11]
steps:
- name: Checkout repository
uses: actions/checkout@v3
# See: https://github.com/marketplace/actions/setup-miniconda
- name: Setup miniconda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
miniforge-variant: Mambaforge
conda-channels: conda-forge
python-version: ${{ matrix.python-version }}
use-mamba: true
- name: Install BioPandas
run: pip install -e .
- name: Install Dev Dependencies
run: pip install mmtf-python numpy scipy pandas pytest looseversion importlib_resources
- name: Run unit tests and generate coverage report
run: pytest -s -

0 comments on commit c85c407

Please sign in to comment.