Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

78 Extract performance profiling cli. #88

Merged
merged 21 commits into from
Mar 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,23 @@ jobs:
- 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

24 changes: 4 additions & 20 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,27 +101,11 @@ jobs:
pip install tox tox-gh-actions
- name: Run profiling
run: tox run -e profiling

benchmarks:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
- uses: actions/upload-artifact@v4
with:
python-version: "3.10"
- 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
working-directory: ${{ github.workspace }}
- name: Install tox
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Run benchmarks
run: tox run -e benchmarks
name: upload-profiling-results
path: .tox/profiling/log
if-no-files-found: error

publish:
if: ${{ false }} # disabled until decided when it should run exactly
Expand Down
39 changes: 0 additions & 39 deletions benchmarks/benchmark_all_examples.py

This file was deleted.

Loading