Created using Colab #37
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: tests-rnd | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test-toy-configs: | |
| runs-on: ubuntu-latest | |
| if: ${{ !contains(github.event.head_commit.message, 'skip-ci') }} | |
| strategy: | |
| matrix: | |
| include: | |
| - config: '+id=000 data.fpred=../output/dblp/toy.dblp.v12.json/splits.f3.r0.85/rnd.b1000/f0.test.pred ' | |
| - config: '+id=001 data.fpred=../output/dblp/toy.dblp.v12.json/splits.f3.r0.85/rnd.b1000/ acceleration=cpu:1' | |
| - config: '+id=001 data.fpred=../output/dblp/toy.dblp.v12.json/splits.f3.r0.85/rnd.b1000/ acceleration=cpu:3' | |
| - config: '+id=001 data.fpred=../output/dblp/toy.dblp.v12.json/splits.f3.r0.85/rnd.b1000/ acceleration=cpu' | |
| # Set to false if you want parallel runs: | |
| fail-fast: false | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.8' | |
| - name: Install dependencies | |
| run: | | |
| pip install -r requirements.txt | |
| - name: Clean up previous outputs | |
| run: rm -rf output/dblp/toy.dblp.v12.json/splits.f3.r0.85/rnd.b1000/adila/ | |
| - name: Echo config index | |
| run: | | |
| echo 'Config index: ${{ matrix.index }}' | |
| - name: Run config ${{ matrix.config }} | |
| run: | | |
| python grid.py ${{ matrix.config }} | |
| working-directory: ./src | |
| continue-on-error: ${{ matrix.label == 'fail.validate' }} | |