Skip to content

Updates (#13)

Updates (#13) #35

Workflow file for this run

name: "Test"
on:
workflow_dispatch:
push:
branches: [master]
paths: &paths
- ".github/workflows/test.yaml"
- "src/**"
- "tests/**"
- "pyproject.toml"
- "uv.lock"
pull_request:
branches: [master]
paths: *paths
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: "Build"
if: ${{ !contains(github.event.head_commit.message, '#notest') }}
uses: ./.github/workflows/build.yaml
with:
version: ""
#version-file: ""
permissions:
contents: write
test:
name: "Test"
runs-on: ${{ matrix.os }}
timeout-minutes: 5
needs: [build]
strategy:
fail-fast: false
matrix:
os: ["ubuntu-22.04"]
version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
permissions:
contents: read
steps:
- name: "Checkout"
uses: actions/checkout@v6
- name: "Debug event.json"
continue-on-error: true
run: cat "${GITHUB_EVENT_PATH}"
- name: "Debug CTX github"
continue-on-error: true
env:
GITHUB_CTX: ${{ toJSON(github) }}
run: echo "$GITHUB_CTX"
- name: "Debug Environment"
continue-on-error: true
run: env
- name: "Download Artifact"
uses: actions/download-artifact@v6
with:
name: dist
path: dist
- name: "Setup Python ${{ matrix.version }}"
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.version }}
cache: "pip"
- name: "Install ${{ matrix.version }}"
run: |
python -V
python -m pip install -U pip pytest
python -m pip install dist/*.whl
- name: "Test ${{ matrix.version }}"
run: |
pytest -s