ci: inline image build jobs instead of triggering workflows from release-please workflow. #28
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: Checks | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: [ "main" ] | |
# Scheduled workflows will only run on the default branch. | |
schedule: | |
- cron: '30 5 * * *' | |
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token | |
# https://docs.github.com/en/rest/authentication/permissions-required-for-github-apps?apiVersion=2022-11-28#repository-permissions-for-actions | |
permissions: | |
contents: write | |
pull-requests: write | |
actions: write | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test-evaluation-compute-worker: | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [ "3.13" ] | |
steps: | |
- name: List workflows | |
run: gh workflow list | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/checkout@v4 | |
- name: Download debug environments | |
run: | | |
wget "https://data.flatland.cloud/benchmarks/Flatland3/debug-environments.zip" -O debug-environments.zip | |
unzip -o debug-environments.zip -d evaluation/evaluator | |
find . | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install pytest | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r evaluation/requirements-dev.txt | |
pip install -r evaluation/compute_worker/requirements.txt | |
- name: Run tests | |
working-directory: ./evaluation/ | |
run: pytest -s |