Skip to content

Enable sync on push to main branch #23

Enable sync on push to main branch

Enable sync on push to main branch #23

Workflow file for this run

name: commit-test
on:
push:
path-ignores:
- 'README.md'
- 'READMEs/**'
- '.vscode/**'
- 'change_logs/**'
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python:
[cpython-3.11, cpython-3.12, cpython-3.13, cpython-3.14, cpython-3.15, cpython-3.13+freethreaded, cpython-3.14+freethreaded, cpython-3.15+freethreaded, pypy-3.11]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
#with:
#enable-cache: true # 啟用 uv 的內建快取,加速重複建置
- name: Set up Python with uv
run: uv python install ${{ matrix.python }}
- name: Create venv
run: uv venv --python ${{ matrix.python }}
- name: Install project dependencies with uv
run: uv sync --extra test
- name: Run tests with pytest
run: uv run pytest