build: move to pyproject.toml #362
Workflow file for this run
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: Run Tests | |
on: | |
push: | |
branches: [master, develop] | |
pull_request: | |
branches: [master, develop] | |
schedule: | |
- cron: "0 7 * * 1" | |
workflow_dispatch: | |
jobs: | |
lint: | |
name: Linting (pre-commit and mypy) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repo | |
uses: actions/checkout@v4 | |
with: | |
# Get history and tags for SCM versioning to work | |
fetch-depth: 0 | |
- name: Install the latest version of uv with cache enabled | |
uses: astral-sh/setup-uv@v3 | |
with: | |
version: "latest" | |
enable-cache: true | |
cache-dependency-glob: "" | |
- name: Run linters with tox | |
run: uvx --python 3.9 --with tox-uv tox -e linters | |
tests: | |
name: Test it! | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
python-version: [3.9, "3.13"] | |
os: [ubuntu-latest, windows-latest] | |
steps: | |
- name: Checkout the repo | |
uses: actions/checkout@v4 | |
with: | |
# Get history and tags for SCM versioning to work | |
fetch-depth: 0 | |
- name: Install the latest version of uv with cache enabled | |
uses: astral-sh/setup-uv@v3 | |
with: | |
version: "latest" | |
enable-cache: true | |
cache-dependency-glob: "" | |
- name: Test with tox | |
run: uvx --python ${{ matrix.python-version }} --with tox-uv --with tox-gh-actions tox | |
check-pypi: | |
name: Long description check for PyPI | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repo | |
uses: actions/checkout@v4 | |
with: | |
# Get history and tags for SCM versioning to work | |
fetch-depth: 0 | |
- name: Install the latest version of uv with cache enabled | |
uses: astral-sh/setup-uv@v3 | |
with: | |
version: "latest" | |
enable-cache: true | |
cache-dependency-glob: "" | |
- name: Testing with tox and sphinx (to have rst2html.py utility available) | |
run: uvx --with tox-uv --with sphinx tox -e pypi |