⚡ working on code to preprocess refseq #76
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: testing | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.9", "3.10", "3.11"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install poetry | |
run: pipx install poetry | |
- name: Initialise Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: "poetry" | |
- name: Install dependencies for Python ${{ matrix.python-version }} | |
run: | | |
poetry env use "${{ matrix.python-version }}" | |
poetry install | |
# install a version of pytorch that does not require a GPU / CUDA | |
poetry run pip install torch --extra-index-url https://download.pytorch.org/whl/cpu --force | |
- name: Testing | |
run: | | |
poetry env info | |
poetry run pytest |