-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (32 loc) · 917 Bytes
/
CI.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
name: Jenkins Trigger CI
on: [push]
jobs:
test-action:
name: Test Action
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run Action
uses: ./ # Uses an action in the root directory
with:
jenkins_url: 'https://www.google.com'
job_name: 'test-job'
api_token: "${{ secrets.WEBHOOK_TOKEN }}"
job_params: "STAGE=dev"
job_timeout_minutes: '2'
python-tests:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./webhook-trigger
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.11
- run: |
python3 -m pip install --upgrade pipenv
pipenv install --deploy --dev
pipenv run coverage run -m pytest --log-cli-level=INFO
pipenv run coverage report