Skip to content

Commit f8e4fea

Browse files
committed
Refine the workflow triggers
Signed-off-by: tdruez <[email protected]>
1 parent bdf8c97 commit f8e4fea

File tree

3 files changed

+17
-7
lines changed

3 files changed

+17
-7
lines changed

.github/workflows/publish-pypi-release-aboutcode-pipeline.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ name: Build aboutcode.pipeline Python distributions and publish on PyPI
33
on:
44
workflow_dispatch:
55
push:
6-
tags:
7-
- "aboutcode.pipeline/*"
6+
tags:
7+
- "aboutcode.pipeline/*"
88

99
jobs:
1010
build-and-publish:

.github/workflows/run-unit-tests-docker.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
name: Run unit tests on Docker container
22

3-
on: [push, pull_request]
4-
5-
permissions:
6-
contents: read
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
push:
7+
branches:
8+
- main
79

810
jobs:
911
build:
@@ -18,5 +20,8 @@ jobs:
1820
- name: Generate the .env file and the SECRET_KEY
1921
run: make envfile
2022

23+
- name: Build and run the Docker Compose stack
24+
run: docker compose up -d
25+
2126
- name: Run tests
2227
run: docker compose run web python ./manage.py test --verbosity=2 --noinput

.github/workflows/run-unit-tests.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: Run unit tests
22

3-
on: [push, pull_request]
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
push:
7+
branches:
8+
- main
49

510
env:
611
POSTGRES_DB: scancodeio

0 commit comments

Comments
 (0)