adapt climate dataset for case when no data has been downloaded outsi… #6
This file contains hidden or 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: ClimateSet Emulator Checks | |
| on: [push, pull_request] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python 3.10 | |
| uses: actions/setup-python@v3 | |
| with: | |
| python-version: "3.10" | |
| # - name: Install system dependencies (attention! different OS) | |
| # run: | | |
| # sudo apt-get install [...] | |
| - name: Install python dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install poetry | |
| - name: Setup environment | |
| run: | | |
| bash setup.sh | |
| - name: Test metrics and losses | |
| run: | | |
| source env_emulator/bin/activate | |
| cd tests | |
| pytest | |
| # - name: Download data from original source | |
| # run: | | |
| # bash setup.sh -d | |
| - name: Test if you can run one single model | |
| run: | | |
| source env_emulator/bin/activate | |
| python emulator/run.py experiment=github_workflow.yaml | |
| # - name: Pipx build | |
| # - name: check dist | |
| # - name: publish dist (on TestPyPi) |