Skip to content

135 Add Flatland callbacks. Refactor trajectories. #466

135 Add Flatland callbacks. Refactor trajectories.

135 Add Flatland callbacks. Refactor trajectories. #466

Workflow file for this run

name: Checks
on:
workflow_dispatch:
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://github.com/flatland-association/flatland-scenarios/raw/refs/heads/main/trajectories/FLATLAND_BENCHMARK_EPISODES_FOLDER_v2.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
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: 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
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: Install tox
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Run examples
run: tox run -e examples
profiling:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set up Python
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 profiling
run: tox run -e profiling
- uses: actions/upload-artifact@v4
with:
name: upload-profiling-results
path: .tox/profiling/log
if-no-files-found: error