diff --git a/.github/workflows/kaggle.yml b/.github/workflows/kaggle.yml index d929591..3f3e8b9 100644 --- a/.github/workflows/kaggle.yml +++ b/.github/workflows/kaggle.yml @@ -5,6 +5,7 @@ on: branches: - master - main + - dev workflow_dispatch: @@ -35,6 +36,7 @@ jobs: cd pycffirmware git submodule update --init --recursive ./wrapper/build_linux.sh + shell: micromamba-shell {0} - name: Run simulation tests run: python scripts/kaggle.py shell: micromamba-shell {0} diff --git a/pyproject.toml b/pyproject.toml index a7494df..10fce0b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,6 +40,12 @@ rl = ["stable-baselines3"] [tool.setuptools.packages] find = {} +[tool.setuptools.package-data] +lsy_drone_racing = [ + "sim/assets/*.dae", + "sim/assets/*.urdf", +] + [tool.pytest.ini_options] markers = ["unit", "integration"] diff --git a/scripts/kaggle.py b/scripts/kaggle.py index 3c3eb12..739e35e 100644 --- a/scripts/kaggle.py +++ b/scripts/kaggle.py @@ -4,7 +4,6 @@ Please do not alter this script or ask the course supervisors first! """ - import logging from pathlib import Path @@ -31,7 +30,7 @@ def main(): logger.info("All runs completed successfully!") # Abort if more than half of the runs failed - if len(failed) > n_runs / 2: + if len(failed) >= n_runs: # / 2: logger.error("More than 50% of all runs failed! Aborting submission.") raise RuntimeError("Too many runs failed!")