Skip to content

Commit

Permalink
Update: Modified Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
PC-Ngumoha committed Mar 10, 2024
1 parent 5f286fa commit db1356a
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
---
name: Checks

on: [push] # Runs when we Push to Github

# Ubuntu 20.04 comes with docker-compose by default. Hence why we did not install it.
on: [push]

jobs:
test-lint:
name: Test and Lint
runs-on: ubuntu-20.04 # Specifies the O.S where this job will be run.
runs-on: ubuntu-20.04
steps:
- name: Login to Docker Hub
users: docker/login-action@v1 # Logs in to Docker Hub
users: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Checkout
users: actions/checkout@v2 # Grants us access to the code we pushed
users: actions/checkout@v2
- name: Test
run: docker-compose run --rm app sh -c "python manage.py test" # Runs the unit tests
run: docker-compose run --rm app sh -c "python manage.py test"
- name: Lint
run: docker-compose run --rm app sh -c "flake8" # Runs the linting tests
run: docker-compose run --rm app sh -c "flake8"

0 comments on commit db1356a

Please sign in to comment.