Skip to content

test against packages based on date #8

test against packages based on date

test against packages based on date #8

Workflow file for this run

on: [push]
name: Test Package
jobs:
test-package:
name: test-package
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
python-version:
- "3.10"
- "3.11"
- "3.12"
package-date:
- "2022-01-01"
- "2024-01-01"
- "3000-01-01"
steps:
- uses: actions/checkout@v4
- name: Set up uv
if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' }}
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Set up uv
if: ${{ matrix.os == 'windows-latest' }}
run: irm https://astral.sh/uv/install.ps1 | iex
shell: powershell
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install the project
run: uv sync --all-extras --dev --exclude-newer {{ matrix.package-date }}
- name: Test package
run: uv run pytest