| name: CI | |
| on: | |
| push: | |
| branches: [main, benchmark-core] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install package and test dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install -e .[dev] | |
| - name: Run pre-submission check | |
| run: | | |
| python pre_submission_check.py | |
| - name: Run benchmark test suite | |
| run: | | |
| python -m unittest discover -s tests | |
| python -m unittest discover -s submission_tests | |
| docker-build: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| needs: test | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Build container image | |
| run: docker build -t idpi-exfil-env . | |