Refactored how we get results from Mercadopago. (#271) #128
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: [ master ] | |
pull_request: | |
branches: [ master ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
run-tests: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python 3.9 on Ubuntu Focal | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Bootstrap everything | |
run: | | |
pip install -U "docker < 7" # compatibility issues; see https://github.com/docker/docker-py/issues/3194 | |
pip install -U docker-compose | |
docker-compose up -d | |
docker-compose exec -T web pip install -r /code/config/requirements-dev.txt | |
- name: Run tests | |
run: | | |
docker-compose start | |
docker-compose exec -T web ./manage.py test -v2 --noinput | |