Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

update project

update project #258

Workflow file for this run

name: CI testing
on: # Trigger the workflow on push or pull request, but only for the master branch
push:
branches: ["main"]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
jobs:
pytest:
runs-on: ubuntu-22.04
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install packages
run: |
pip install -U -r requirements.txt -r tests/requirements.txt \
-f https://download.pytorch.org/whl/cpu/torch_stable.html
pip list
- name: Tests
run: python -m pytest tests