-
Notifications
You must be signed in to change notification settings - Fork 3
70 lines (65 loc) · 2.16 KB
/
lpt-locust.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
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
name: lpt-locust
on:
push:
branches:
- '**'
paths:
- .github/workflows/lpt-locust.yaml
- .github/workflows/prepare-release.yaml
- .github/workflows/build-docker.yaml
- .github/workflows/release.yaml
- test/lpt-locust/**
jobs:
prepare-release:
uses: ./.github/workflows/prepare-release.yaml
with:
working-dir: ./test/lpt-locust
license-report:
name: 📋 Generate license report
runs-on: ubuntu-latest
outputs:
license-artifact-name: license-report
license-artifact-path: ./test/lpt-locust/license-report
steps:
- name: ⬇️ Checkout
uses: actions/checkout@v4
- name: 🏗 Setup python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
cache-dependency-path: 'test/lpt-locust/src/requirements.txt'
- name: 👨🏻💻 Install dependencies
run: pip install -r test/lpt-locust/src/requirements.txt
- name: 🔗 Install license reporting tool
run: pip install pip-licenses
- name: 📋 Generate license report
working-directory: ./test/lpt-locust
run: |
pip-licenses --with-license-file \
--format html --with-notice-file --no-license-path >licenses.html
- name: 📦 Upload license report
uses: actions/upload-artifact@v3
with:
name: license-report
path: ./test/lpt-locust/licenses.html
docker:
uses: ./.github/workflows/build-docker.yaml
needs:
- prepare-release
with:
image-name: lpt-locust
working-dir: ./test/lpt-locust
version: ${{ needs.prepare-release.outputs.release-version }}
github-release:
uses: ./.github/workflows/release.yaml
needs:
- prepare-release
- license-report
- docker
with:
service-name: lpt-locust
version: ${{ needs.prepare-release.outputs.release-version }}
change-notes: ${{ needs.prepare-release.outputs.release-notes }}
license-artifact-name: ${{ needs.license-report.outputs.license-artifact-name }}
license-artifact-path: ${{ needs.license-report.outputs.license-artifact-path }}