Merge pull request #3590 from reframe-hpc/dependabot/pip/pytest-9.0.1 #725
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: ReFrame CI / Scheduler backend tests | |
| on: [push, pull_request] | |
| jobs: | |
| scheduler-test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| scheduler: ['pbs', 'slurm', 'squeue', 'torque'] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Login to GitHub Container Registry | |
| uses: docker/login-action@v2 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build Images | |
| run: | | |
| docker compose -f .github/pseudo-cluster/docker-compose.yml build | |
| - name: Run unit tests with ${{ matrix.scheduler }} scheduler | |
| run: | | |
| BACKEND=${{ matrix.scheduler }} docker compose -f .github/pseudo-cluster/docker-compose.yml up --abort-on-container-exit --exit-code-from unittest-sched | |
| _exitcode=$? | |
| docker cp unittest-sched:/home/admin/reframe/coverage.xml . | |
| exit $_exitcode | |
| - name: Upload coverage reports | |
| uses: codecov/codecov-action@v4.2.0 |