-
Notifications
You must be signed in to change notification settings - Fork 11
51 lines (49 loc) · 1.27 KB
/
web.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
47
48
49
50
51
name: Python package
on:
push:
branches:
- master
- develop
pull_request:
jobs:
django_build_and_test:
runs-on: ubuntu-latest
# strategy:
# matrix:
# python:
# # - 3.6
# - "3.12"
# django:
# # - "==2.2.*"
# - "==4.2"
steps:
- uses: actions/checkout@v4
with:
lfs: true
- name: Build application
run: docker compose build web
env:
PYTHON_VERSION: ${{ matrix.python }}
DJANGO_VERSION: ${{ matrix.django }}
METADEFENDER_API_KEY: ${{ secrets.METADEFENDER_API_KEY }}
- name: Run side services
run: make wait_mysql
- name: Migration check
run: make check
- name: Show settings
run: make settings
- name: Show installed dependencies
run: docker compose run web pip list
- name: Build test
run: make test
# - name: Send coverage report
# run: make coverage_send
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
- name: Show MySQL logs
run: docker compose logs db
if: failure()
- name: Show docker process
run: docker ps
if: always()