adding unittest for newick encoding #39
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run tests of pyoma | |
on: | |
push: | |
branches: [ $default-branch, develop ] | |
pull_request: | |
branches: [ $default-branch ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{matrix.python-version}} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pytest | |
pip install .[create_db,enrichment] | |
- name: Download test database | |
run: | | |
curl https://zoo.cs.ucl.ac.uk/annex/TestDb.h5 -o TestDb.h5 | |
curl https://zoo.cs.ucl.ac.uk/annex/TestDb.h5.idx -o TestDb.h5.idx | |
- name: Check versions of installed libraries/systems | |
run: python -c "import sys, tables; print(sys.version); tables.print_versions()" | |
- name: Test with pytest | |
run: | | |
pytest |