You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/unit-testing.yml
+43-16Lines changed: 43 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ on:
4
4
types: [opened, reopened, synchronize]
5
5
jobs:
6
6
unit-testing:
7
-
runs-on: ubuntu-latest
7
+
runs-on: large-ubuntu-22.04-32core
8
8
if: "!contains(github.ref, 'refs/tags/')"#don't run on tags - future steps won't run either since they depend on this job
9
9
steps:
10
10
#For fork PRs, always check out security_content and the PR target in security content!
@@ -13,25 +13,32 @@ jobs:
13
13
with:
14
14
repository: 'splunk/security_content'#this should be the TARGET repo of the PR. we hardcode it for now
15
15
ref: ${{ github.base_ref }}
16
-
17
-
18
-
- uses: actions/setup-python@v6
16
+
17
+
- name: Print out information abour PR target
18
+
run: |
19
+
echo "The PR target branch is: ${{ github.base_ref }}"
20
+
echo "The PR head branch is: ${{ github.head_ref }}"
21
+
echo "My current branch is"
22
+
git branch --show-current
23
+
git rev-parse HEAD
24
+
25
+
26
+
- name: Set up Python
27
+
uses: actions/setup-python@v6
19
28
with:
20
-
python-version: '3.11'#Available versions here - https://github.com/actions/python-versions/releases easy to change/make a matrix/use pypy
21
-
architecture: 'x64'# optional x64 or x86. Defaults to x64 if not specified
29
+
python-version: 3.14
30
+
architecture: x64
22
31
23
-
- name: Install Python Dependencies and ContentCTL
32
+
- name: Install contentctl-ng
33
+
shell: bash
24
34
run: |
25
-
python -m pip install --upgrade pip
26
-
echo "- Contentctl version - $(cat requirements.txt)"
35
+
echo "- Build Tool Version - $(cat requirements.txt)"
27
36
pip install -r requirements.txt
28
-
29
-
30
-
# Running contentctl test with a few arguments, before running the command make sure you checkout into the current branch of the pull request. This step only performs unit testing on all the changes against the target-branch. In most cases this target branch will be develop
31
-
# Make sure we check out the PR, even if it actually lives in a fork
0 commit comments