Skip to content

Commit

Permalink
CI and version string bump for v0.5.1 (#149)
Browse files Browse the repository at this point in the history
* include testing on newer python versions

* bump version string

* linting: remove print statements from tests

* fix: improve robustness of  and add a test #141

* fix: add init to test data module

* fix: add init to remaining test data modules

* tests: add tests with github actions

* tests: add tests with github actions

* tests: rename build job

* update changelog

---------

Co-authored-by: Arian Jamasb <arian.jamasb@roche.com>
  • Loading branch information
a-r-j and Arian Jamasb authored Aug 1, 2024
1 parent 5fa2104 commit 04daaa6
Show file tree
Hide file tree
Showing 14 changed files with 207 additions and 115 deletions.
9 changes: 9 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ environment:
matrix:
- PYTHON_VERSION: 3.7
MINICONDA: C:\Miniconda3
- PYTHON_VERSION: 3.8
MINICONDA: C:\Miniconda3
- PYTHON_VERSION: 3.9
MINICONDA: C:\Miniconda3
- PYTHON_VERSION: "3.10"
MINICONDA: C:\Miniconda3
- PYTHON_VERSION: 3.11
MINICONDA: C:\Miniconda3


init:
- ECHO %PYTHON_VERSION% %MINICONDA%
Expand Down
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_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
2 changes: 1 addition & 1 deletion biopandas/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@
# 'X.Y.dev0' is the canonical version of 'X.Y.dev'
#

__version__ = "0.5.1dev"
__version__ = "0.5.1"
__author__ = "Sebastian Raschka <mail@sebastianraschka.com>"
Loading

0 comments on commit 04daaa6

Please sign in to comment.