recipes_api/.github/workflows/checks.yml

23 lines
561 B
YAML
Raw Permalink Normal View History

2023-10-04 00:07:55 -03:00
---
name: Checks
on: [push]
jobs:
test-lint:
name: Test and Lint
runs-on: ubuntu-latest
steps:
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Checkout
uses: actions/checkout@v2
- name: Test
run: docker compose run --rm app sh -c "python manage.py wait_for_db &&
python manage.py test"
2023-10-04 00:07:55 -03:00
- name: Lint
run: docker compose run --rm app sh -c "flake8"