-
Notifications
You must be signed in to change notification settings - Fork 7
34 lines (32 loc) · 1.05 KB
/
dltlyse-ci.yaml
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
name: dltlyse-ci-actions
on: [push, pull_request]
jobs:
run-test-for-dltlyse:
runs-on: ubuntu-latest
strategy:
matrix:
LIBDLT_VERSION:
- "v2.18.8"
steps:
- uses: actions/checkout@v3
- name: Build dltlyse unit test docker image
id: docker_build
uses: docker/build-push-action@v3
with:
file: "Dockerfile.github_flow"
push: false
build-args: |
LIBDLT_VERSION=${{ matrix.LIBDLT_VERSION }}
tags: dltlyse/dltlyse-unittest:${{ matrix.LIBDLT_VERSION }}
- name: Run tox static check
uses: addnab/docker-run-action@v3
with:
image: dltlyse/dltlyse-unittest:${{ matrix.LIBDLT_VERSION }}
options: -v ${{ github.workspace }}:/dltlyse -w /dltlyse
run: tox -e statictest
- name: Run tox
uses: addnab/docker-run-action@v3
with:
image: dltlyse/dltlyse-unittest:${{ matrix.LIBDLT_VERSION }}
options: -v ${{ github.workspace }}:/dltlyse -w /dltlyse
run: tox