Skip to content

Require Python 3.10 #237

Require Python 3.10

Require Python 3.10 #237

Workflow file for this run

name: Check and test
on: [push, pull_request]
env:
FORCE_COLOR: 1
jobs:
build:
strategy:
matrix:
os: ["ubuntu-latest"]
python-version:
- "3.10" # minimum required
- "3.13" # latest
- "3.14-dev" # next
include:
- python-version: 3.10
os: windows-2022
- python-version: 3.10
os: macos-12
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.python-version == '3.13-dev' || matrix.python-version == 3.14-dev}}

Check failure on line 24 in .github/workflows/main.yaml

View workflow run for this annotation

GitHub Actions / Check and test

Invalid workflow file

The workflow is not valid. .github/workflows/main.yaml (Line: 24, Col: 24): Unexpected symbol: '3.14-dev'. Located at position 65 within expression: matrix.python-version == '3.13-dev' || matrix.python-version == 3.14-dev .github/workflows/main.yaml (Line: 24, Col: 24): Unexpected value '${{ matrix.python-version == '3.13-dev' || matrix.python-version == 3.14-dev}}'
steps:
- uses: actions/checkout@v4
- run: pip install poetry
- uses: actions/setup-python@v5
id: setup-python
with:
python-version: ${{ matrix.python-version }}
cache: poetry
- run: poetry env use ${{ steps.setup-python.outputs.python-path }}
- run: poetry install
- run: poetry run ruff format --check
- run: poetry run ruff check
- run: poetry run pyright --warnings
- run: poetry run pytest
- run: poetry run coverage xml
- uses: coverallsapp/github-action@v2
if: >
(github.event_name == 'pull_request' || github.ref_name == 'main') &&
matrix.python-version == '3.10' &&
matrix.os == 'ubuntu-latest'
with:
# Ignore .coverage, which has limited support from coveralls
file: coverage.xml
build-beets-versions:
runs-on: ubuntu-latest
strategy:
matrix:
beets:
- "git+https://github.com/beetbox/beets#master"
- "beets==1.6.1"
steps:
- uses: actions/checkout@v4
- run: pip install poetry
- uses: actions/setup-python@v5
with:
python-version: 3.10
cache: poetry
- run: poetry env use $(which python)
- run: poetry install
- run: poetry add ${{ matrix.beets }}
- run: poetry run pyright --warnings
- run: poetry run pytest