Skip to content

⚡ adding line count code #80

⚡ adding line count code

⚡ adding line count code #80

Workflow file for this run

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