Merge pull request #115 from DESm1th/0.2.1 #8
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 tests | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
workflow_dispatch: | |
branches: [main] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Start up the dashboard | |
run: cd containers/devel && docker-compose up -d | |
- name: Install requirements | |
run: docker exec -t devel_dashboard /bin/bash -c "pip install -r dashboard/test_requirements.txt" | |
- name: Run tests | |
run: docker exec -t devel_dashboard pytest -v dashboard/tests | |
- name: Stop containers | |
if: always() | |
run: cd containers/devel && docker-compose down |