-
Notifications
You must be signed in to change notification settings - Fork 153
33 lines (30 loc) · 1.08 KB
/
commands-gallery-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
33
name: Commands Gallery CI
on:
pull_request:
# Sequence of patterns matched against refs/heads
branches:
- "master"
paths:
- "PowerShell/JumpCloud Commands Gallery/**"
- "PowerShell/JumpCloud Commands Gallery/commands.json"
types: [opened, synchronize, reopened, labeled, unlabeled]
jobs:
Filter-Branch:
runs-on: ubuntu-latest
if: contains(github.event.pull_request.labels.*.name, 'Commands Gallery')
steps:
- run: echo "Building JumpCloud Commands Gallery Event"
Test-Commands-Gallery:
needs: ["Filter-Branch"]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies
run: pip install -r .github/scripts/requirements.txt
- name: Run Python Test
run: pytest .github/scripts/tests/test_build_commands_gallery.py