Deepscore Object (Post-Database Rework) #296
Workflow file for this run
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: Run Pipeline Tests 2 | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
tests: | |
name: run tests in docker image | |
runs-on: ubuntu-latest | |
env: | |
REGISTRY: ghcr.io | |
COMPOSE_FILE: tests/docker-compose.yaml | |
steps: | |
- name: Dump docker logs on failure | |
if: failure() | |
uses: jwalton/gh-docker-logs@v2 | |
- name: checkout code | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: log into github container registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: cleanup | |
run: | | |
# try to save HDD space on the runner by removing some unneeded stuff | |
# ref: https://github.com/actions/runner-images/issues/2840#issuecomment-790492173 | |
sudo rm -rf /usr/share/dotnet | |
sudo rm -rf /opt/ghc | |
sudo rm -rf "/usr/local/share/boost" | |
sudo rm -rf "$AGENT_TOOLSDIRECTORY" | |
# IF BUILDING DOCKER IMAGES IN EACH STEP | |
# Make sure the code doing this in run-improc-tests.yml is right. | |
# Uncomment it there, and copy it here. Remove the "pull images" step. | |
- name: pull images | |
run: | | |
docker compose pull archive postgres conductor mailhog webap runtests | |
- name: run test | |
run: | | |
shopt -s nullglob | |
TEST_SUBFOLDER=$(ls tests/pipeline/test_{p..z}*.py) docker compose run -e SKIP_BIG_MEMORY=1 -e SKIP_NOIRLAB_DOWNLOADS=1 runtests |