-
Notifications
You must be signed in to change notification settings - Fork 4
57 lines (49 loc) · 1.38 KB
/
main.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
name: Main
on:
workflow_dispatch:
push:
branches:
- main
- v2
env:
REPOSITORY: lukeshirnia/out-of-memory
jobs:
detect-file-changes:
runs-on: ubuntu-latest
outputs:
docker_changes: ${{ steps.changes.outputs.docker_changes }}
oom_investigate: ${{ steps.changes.outputs.oom_investigate }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v2
id: changes
with:
filters: |
docker_changes:
- "Dockerfile"
- "docker-compose.yml"
oom_investigate:
- ".github/workflows/*.yml"
- "tests/**/*"
- "oom_investigate.py"
build-pytest-images:
needs:
- detect-file-changes
uses: ./.github/workflows/build-pytest-images.yml
if: needs.detect-file-changes.outputs.docker_changes == 'true'
black:
needs:
- detect-file-changes
uses: ./.github/workflows/black.yml
if: needs.detect-file-changes.outputs.oom_investigate == 'true'
isort:
needs:
- detect-file-changes
uses: ./.github/workflows/isort.yml
if: needs.detect-file-changes.outputs.oom_investigate == 'true'
pytest:
needs:
- detect-file-changes
uses: ./.github/workflows/pytest.yml
if: needs.detect-file-changes.outputs.oom_investigate == 'true'
secrets: inherit