Skip to content

[update] tests 拉取鏡像 #3

[update] tests 拉取鏡像

[update] tests 拉取鏡像 #3

Workflow file for this run

name: tests
on:
workflow_dispatch:
push:
branches: [main]
paths:
- "**/*.py"
- "pyproject.toml"
- ".github/workflows/tests.yml"
pull_request:
branches: [main]
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-13]
python-version: ["3.10", "3.11", "3.12"]
runs-on: ${{ matrix.os }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os }}-${{ matrix.python-version }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
run: pip install uv
- name: Create uv venv
run: uv venv
- name: Install dependencies
run: uv pip install ".[dev]"
- name: Docker Image Pull
run: |
docker pull ghcr.io/tsukisama9292/judge_micro:c
docker pull ghcr.io/tsukisama9292/judge_micro:c_plus_plus
- name: Run tests
run: uv run python -X utf8 -m pytest -s