Skip to content

Commit 40cac04

Browse files
committed
checks
1 parent 370c3e3 commit 40cac04

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

.github/workflows/checks.yml

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
1+
name: CI Checks
2+
3+
on: [push]
4+
15
jobs:
26
test-lint:
37
name: Test and Lint
4-
runs-on: ubuntu-latest
8+
runs-on: ubuntu-20.04
59
steps:
6-
- name: Checkout code
7-
uses: actions/checkout@v2
8-
9-
- name: Use Docker with Compose
10-
uses: docker/setup-buildx-action@v2
11-
1210
- name: Login to Docker Hub
1311
uses: docker/login-action@v1
1412
with:
1513
username: ${{ secrets.DOCKERHUB_USER }}
1614
password: ${{ secrets.DOCKERHUB_TOKEN }}
1715

18-
- name: Run Tests in Docker
19-
run: |
20-
docker run --rm -v ${{ github.workspace }}:/app -w /app \
21-
docker/compose:latest sh -c "docker-compose run --rm app python manage.py test"
16+
- name: Checkout code
17+
uses: actions/checkout@v2
18+
19+
- name: Run Tests
20+
run: docker-compose run --rm app sh -c "python manage.py test"
2221

23-
- name: Run Linting in Docker
24-
run: |
25-
docker run --rm -v ${{ github.workspace }}:/app -w /app \
26-
docker/compose:latest sh -c "docker-compose run --rm app flake8"
22+
- name: Run Linting
23+
run: docker-compose run --rm app sh -c "flake8"
24+

0 commit comments

Comments
 (0)