Skip to content

140 Rail, Line and Timetable from File Generators. #407

140 Rail, Line and Timetable from File Generators.

140 Rail, Line and Timetable from File Generators. #407

Workflow file for this run

name: Checks
on:
pull_request:
branches: [ "main" ]
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true
jobs:
lint:
if: ${{ false }} # disabled for now, hasn't run in a while resulting in countless issues
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install tox
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Run lint checks
run: tox run -e flake8
test:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
python-version: [ "3.10", "3.11", "3.12" ]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Download episodes
run: |
wget "https://data.flatland.cloud/trajectories/FLATLAND_BENCHMARK_EPISODES_FOLDER.zip" -O FLATLAND_BENCHMARK_EPISODES_FOLDER.zip
mkdir -p episodes
unzip FLATLAND_BENCHMARK_EPISODES_FOLDER -d episodes
- name: Install tox
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Run tests
run: tox
notebooks:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Start Redis
uses: supercharge/[email protected]
with:
redis-version: 7.4.2
redis-port: 6379
- name: Install tox
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Run notebooks
run: tox run -e notebooks
examples:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install tox
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Run examples
run: tox run -e examples