-
Notifications
You must be signed in to change notification settings - Fork 53
72 lines (71 loc) · 1.93 KB
/
docker-ci-tests.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Pytest Docker
on:
push:
branches: ['main']
pull_request:
branches: ['main']
paths:
- '**.py'
- '**.js'
- '**.scss'
- '**.jinja2'
- 'requirements/base.txt'
- 'requirements/test.txt'
- '.github/workflows/docker-ci-tests.yml'
- 'Dockerfile'
- 'pyproject.toml'
- '.eslintrc.js'
- 'docker-compose.yml'
- 'docker/compose/services.yml'
- 'docker/entrypoints/ci-test.sh'
- 'docker/initdb/test.sh'
- 'package.json'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
pytest-docker:
name: Pytest Docker
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache npm
uses: actions/cache@v3
with:
path: .cache/.npm
key: docker-npm
- name: Cache node_modules
uses: actions/cache@v3
with:
path: node_modules
key: docker-node_modules-${{ hashFiles('package-lock.json') }}
- name: Cache pip
uses: actions/cache@v3
with:
path: .cache/pip
key: docker-pip
- name: Cache .local
uses: actions/cache@v3
with:
path: .cache/.local
key: docker-user-local
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build funnel-test image
id: build-funnel-test
uses: docker/build-push-action@v4
with:
context: .
file: ci.Dockerfile
tags: funnel-test:latest
load: true
push: false
- name: Run Tests
run: make docker-ci-test
- name: Upload coverage report to Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: coverage/funnel.lcov
flag-name: docker-3.11