-
Notifications
You must be signed in to change notification settings - Fork 121
44 lines (40 loc) · 1.16 KB
/
tests.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: tests
on:
push:
paths-ignore:
- "README.md"
- "docs/**"
- "CHANGELOG.md"
pull_request:
paths-ignore:
- "README.md"
- "docs/*"
- "CHANGELOG.md"
jobs:
build_biopandas:
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 -v