Skip to content

UID2-6793: Pin external GitHub Actions to SHA hashes (#73) #184

UID2-6793: Pin external GitHub Actions to SHA hashes (#73)

UID2-6793: Pin external GitHub Actions to SHA hashes (#73) #184

name: Build and Test
on: [pull_request, push, workflow_dispatch]
jobs:
vulnerability-scan:
uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-build-and-test.yaml@v3
secrets: inherit
with:
vulnerability_scan_only: true
unit-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10","3.11","3.12","3.13"]
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[dev]
- name: Run unit tests
run: |
python -m unittest tests/*.py