reorder tests #77
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: Tests CI | |
on: | |
push: | |
branches-ignore: | |
- main | |
jobs: | |
build: | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build Images | |
run: docker-compose -f docker-compose.test.yml build | |
test: | |
runs-on: self-hosted | |
needs: build | |
steps: | |
- name: Run Tests | |
run: | | |
docker-compose -f docker-compose.test.yml up -d --force-recreate | |
sleep 30 | |
echo Running back/storage lint... | |
docker exec iss-tests flake8 | |
echo Running back tests... | |
docker exec iss-test-back ./manage.py test | |
echo Running front lint... | |
docker exec iss-test-front npm run lint | |
echo Running front tests... | |
docker exec iss-test-front npm run test | |
# docker exec iss-test-front npm run compile | |
echo Running storage tests... | |
docker exec iss-test-storage python3 src/test.py | |
# docker exec iss-tests python3 test.py | |
clean: | |
runs-on: self-hosted | |
needs: test | |
if: always() | |
steps: | |
- name: Clean up | |
run: | | |
docker-compose -f docker-compose.test.yml down --volumes --remove-orphans | |
docker system prune --volumes --force | |