Skip to content

ci: disable netex with py313 #272

ci: disable netex with py313

ci: disable netex with py313 #272

Workflow file for this run

name: build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: Python ${{ matrix.python }} - ${{ matrix.collection.name }}
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
python: [ "3.8", "3.9", "3.10", "3.11", "3.12", "3.13-dev" ]
collection:
- { name: "Amadeus", id: "amadeus" }
- { name: "Autosar", id: "autosar" }
- { name: "BPMN", id: "bpmn" }
- { name: "Common Types", id: "common-types" }
- { name: "Crossref Metadata", id: "crossref" }
- { name: "DateX II", id: "datexii" }
- { name: "EWP", id: "ewp" }
- { name: "Generali", id: "generali", skip_mypy: true }
- { name: "NeTEx", id: "netex" }
- { name: "NPO API", id: "npo" }
- { name: "ReqIF", id: "reqif" }
- { name: "Sabre", id: "sabre" }
- { name: "Sdmx-ml", id: "sdmx-ml", skip_mypy: true }
- { name: "SpaceX", id: "spacex" }
- { name: "Travelport", id: "travelport" }
- { name: "UBL", id: "ubl" }
- { name: "Voko", id: "voko" }
- { name: "XCBL", id: "xcbl" }
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install libxml2
if: startsWith(matrix.python, '3.13')
run: |
sudo apt-get install libxml2-dev libxslt-dev
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r requirements.txt
- name: Generate Code
run: invoke ${{ matrix.collection.id }}.build
- name: Run Tests
if: matrix.python != '3.13-dev' || matrix.collection.id != 'netex'
run: invoke ${{ matrix.collection.id }}.test
- name: Run mypy
if: matrix.collection.skip_mypy != true
run: invoke ${{ matrix.collection.id }}.mypy