Merge pull request #69 from onecodex/audy/add-type-stubs #32
This file contains hidden or 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: Test Latest NCBI Taxonomy | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| schedule: | |
| - cron: '0 0 1 * *' # runs at 00:00 on the 1st of every month (UTC) | |
| jobs: | |
| test-ncbi-python-bindings: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - uses: actions-rs/toolchain@v1 | |
| with: | |
| profile: minimal | |
| toolchain: stable | |
| override: true | |
| - name: Install python headers | |
| run: sudo apt-get update && sudo apt-get install python3-dev python3-pip python3-venv | |
| - name: Install python dependencies | |
| run: | | |
| python3 -m venv venv | |
| . venv/bin/activate | |
| pip3 install maturin downloads pytest | |
| pip3 show maturin | |
| - name: Add library to venv | |
| run: | | |
| . venv/bin/activate | |
| maturin develop --features=python | |
| - name: Test Python bindings with latest NCBI taxonomy | |
| run: | | |
| . venv/bin/activate | |
| TAXONOMY_TEST_NCBI=true pytest test_python.py::test_latestncbi_load_latest_ncbi_taxonomy |