Files
splunk-security_content/.github/workflows/contentctl_python_platforms_test.yml
T
pyth0n1c 0e1e6a2798 trying to use pip cache and
auto install of requirements
2022-07-22 11:42:45 -07:00

47 lines
1.7 KiB
YAML

name: contentctl_python_platforms_test
on:
push:
jobs:
check-python-versions:
strategy:
fail-fast: false
matrix:
os: [ubuntu-18.04, ubuntu-20.04, ubuntu22.04, macos-12, windows-2022]
python-version: ['3.9', '3.10', '3.11-dev']
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }} #Available versions here - https://github.com/actions/python-versions/releases easy to change/make a matrix/use pypy
cache: 'pip'
cache-dependency-path: 'requirements.txt'
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
#- name: Install Python Dependencies
# run: |
# python -m venv .venv
# source .venv/bin/activate
# python -m pip install wheel
# python -m pip install -r requirements.txt
- name: Run contentctl and slim to make sure they work on each platform and python version
run: |
# Validate
#source .venv/bin/activate
python contentctl.py -p . --skip_enrichment validate -pr ESCU
python contentctl.py -p . --skip_enrichment validate -pr SSA
# Generate
python contentctl.py --path . --skip_enrichment generate --product ESCU --output dist/escu
python contentctl.py --path . --skip_enrichment generate --product SSA --output dist/ssa
#Test slim as well
mv dist/escu DA-ESS-ContentUpdate
slim package -o upload DA-ESS-ContentUpdate