Merge pull request #3 from generalpy101/improve-parser #12
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 | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
tests: | |
name: Running tests | |
runs-on: ubuntu-latest | |
steps: | |
# checkout the code | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Start redis service | |
run: | | |
docker-compose up -d --build redis-server | |
sleep 5 | |
- name: run pytest | |
run: | | |
set -o pipefail | |
docker-compose run --rm --entrypoint='bash -c "cd /usr/src/redis-clone/ && pytest -vvv"' redis-server | tee pytest_coverage.txt | |
- name: bring down the services | |
run: docker-compose -f docker-compose.yaml down | |