Skip to content

Merge pull request #19 from yukihiko-shinoda/support-python-3-13 #62

Merge pull request #19 from yukihiko-shinoda/support-python-3-13

Merge pull request #19 from yukihiko-shinoda/support-python-3-13 #62

Workflow file for this run

name: Test
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: [ '3.13', '3.12', '3.11', '3.10', '3.9', '3.8' ]
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: python -m pip install uv
- run: python -m uv sync
- run: python -m uv run invoke test.all
test_legacy_linux:
# "It mostly works, especially on Linux and macOS, but it’s not officially supported.":
# - uv tool run is giving "SyntaxError: Non-UTF-8 code starting with '\xe8' in file..." · Issue #12122 · astral-sh/uv
# https://github.com/astral-sh/uv/issues/12122#issuecomment-2761278707
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: [ '3.7' ]
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
- run: uv sync --python ${{ matrix.python-version }}
- run: uv run invoke test
check_style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.13'
- run: python -m pip install uv
- run: python -m uv sync
- run: python -m uv run invoke style --check
check_lint_fast:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.13'
- run: python -m pip install uv
- run: python -m uv sync
- run: python -m uv run invoke lint
check_lint_deep:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.13'
- run: python -m pip install uv
- run: python -m uv sync
- run: python -m uv run invoke lint.deep