Skip to content

Enable testing with Python 3.13 #2

Enable testing with Python 3.13

Enable testing with Python 3.13 #2

Workflow file for this run

name: Tests
on:
push:
paths-ignore:
- docs/**
branches-ignore:
- dependabot/**
- deepsource**
pull_request:
paths-ignore:
- docs/**
permissions:
contents: read
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
requirements: [latest]
python-version:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- '3.13'
os:
- ubuntu-latest
- windows-latest
- macos-latest
include:
- requirements: minimal
python-version: '3.8'
os: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
allow-prereleases: true

Check failure on line 45 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / Tests

Invalid workflow file

The workflow is not valid. .github/workflows/test.yml (Line: 45, Col: 7): Unexpected value 'allow-prereleases'
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: requirements/*.txt
- name: Install apt dependencies
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y libgettextpo-dev libxml2-dev libxmlsec1-dev gettext hunspell-af
- name: Install Windows dependencies
if: matrix.os == 'windows-latest'
run: |
nuget install Gettext.Tools -Version 0.22.4 -OutputDirectory c:\nuget;
Add-Content $env:GITHUB_PATH "C:\nuget\Gettext.Tools.0.22.4\tools\bin"
- name: Update pip
run: python -m pip install --upgrade pip wheel
- name: Install pip dependencies
run: pip install -r requirements/test.txt
- name: Install pip dependencies
if: matrix.requirements == 'minimal'
run: |
make requirements/min-versions.txt
cat requirements/min-versions.txt
pip install -r requirements/min-versions.txt
- name: Install
run: pip install -e .
- name: pytest
run: make test
- name: test-functional
if: matrix.os != 'windows-latest'
env:
PYTHON_ARGS: -m coverage run --append --source ${{ github.workspace }}/translate
COVERAGE_FILE: ${{ github.workspace }}/.coverage
run: make test-functional
- name: Coverage
run: |
coverage xml
- uses: codecov/codecov-action@v4
with:
name: ${{ runner.os }}, Python ${{ matrix.python-version }}, ${{ matrix.requirements }}