Skip to content

Test package

Test package #228

Workflow file for this run

name: Test package
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
workflow_dispatch:
env:
PIP_DISABLE_PIP_VERSION_CHECK: on
PIP_DEFAULT_TIMEOUT: 10
PIP_PROGRESS_BAR: off
jobs:
python-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.13
- run: python -m pip install pre-commit
- run: pre-commit run -a --show-diff-on-failure
python-test:
needs: [python-lint]
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install '.[all,dev]'
- name: Run doctest
run: |
pytest --doctest-modules src/gpuhunt
- name: Run pytest
run: |
pytest src/tests