Skip to content

Commit

Permalink
Create checks.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenPeng2000 authored Jul 15, 2023
1 parent a93bec1 commit be02fc9
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
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@v2
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Checkout
uses: actions/checkout@v3
- name: Test
run: docker-compose run --rm app sh -c "python manage.py test"
- name: Lint
run: docker-compose run --rm app sh -c "flake8"

0 comments on commit be02fc9

Please sign in to comment.