Update installation description. Parameterize kaggle script. #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Online Competition | |
on: | |
push: | |
branches: | |
- master | |
- main | |
jobs: | |
online-competition: | |
runs-on: ubuntu-latest | |
env: # Or as an environment variable | |
KAGGLE_USERNAME: ${{ secrets.KaggleUsername }} | |
KAGGLE_KEY: ${{ secrets.KaggleKey }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: mamba-org/setup-micromamba@v1 | |
with: | |
micromamba-version: '1.5.6-0' # any version from https://github.com/mamba-org/micromamba-releases | |
environment-file: environment.yaml | |
init-shell: >- | |
bash | |
cache-environment: true | |
post-cleanup: 'all' | |
# - run: | | |
# pip install setuptools==65.5.0 pip==21 | |
# pip install wheel==0.38.0 | |
- name: Install safe-control-gym | |
run: | | |
git clone -b beta-iros-competition https://github.com/utiasDSL/safe-control-gym.git | |
cd safe-control-gym | |
pip install . --no-deps | |
cd .. | |
shell: bash -el {0} | |
- name: Install cffirmware | |
run: | | |
git clone https://github.com/utiasDSL/pycffirmware.git | |
cd pycffirmware | |
git submodule update --init --recursive | |
./wrapper/build_linux.sh | |
shell: bash -el {0} | |
- run: pip install . | |
shell: bash -el {0} | |
- name: Run simulation tests | |
run: python scripts/kaggle.py | |
shell: bash -el {0} | |
- name: Export with kaggle | |
run: kaggle competitions submit lsy-drone-racing-ss24 -f submission.csv -m "Automated submission" | |
shell: bash -el {0} | |