-
Notifications
You must be signed in to change notification settings - Fork 4
46 lines (37 loc) · 1.18 KB
/
dev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: 'Pull Request Feedback'
on:
pull_request:
jobs:
test:
name: Run pytest
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v2
# Cache docker layers for faster build
- uses: satackey/[email protected]
# Ignore the failure of a step and avoid terminating the job.
continue-on-error: true
- name: Build
run: docker build -t appraiser-testing -f Dockerfile.test .
- name: Run tests and get output
run: |
echo 'TEST_OUTPUT<<EOF' >> $GITHUB_ENV
echo "$(docker run appraiser-testing)" >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
- name: Exit if there are any test failures
run: '[[ $TEST_OUTPUT != *FAILED* ]]'
verify-lock:
name: Verify lockfiles are up to date
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Verify lockfiles
run: python manage.py verify_locked
check-format:
name: Check that code matches Black formatter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: psf/black@stable