Skip to content

[pre-commit.ci] pre-commit suggestions #237

[pre-commit.ci] pre-commit suggestions

[pre-commit.ci] pre-commit suggestions #237

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-20.04
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.8
uses: actions/setup-python@v5
with:
python-version: "3.8"
- uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install Lightning
run: |
pip install -U lightning -r requirements.txt -r tests/requirements.txt \
-f https://download.pytorch.org/whl/cpu/torch_stable.html
pip list
lightning --version
- name: Tests
run: |
python -m pytest tests