From d69ff12415ab4133ab637d1af39c191ae9b55ed3 Mon Sep 17 00:00:00 2001 From: jasonBirchall Date: Tue, 29 Oct 2024 16:32:44 +0000 Subject: [PATCH] :test_tube: Add test runner for check-pinned-versions action --- .../workflows/test-check-version-pinning.yml | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/test-check-version-pinning.yml diff --git a/.github/workflows/test-check-version-pinning.yml b/.github/workflows/test-check-version-pinning.yml new file mode 100644 index 0000000..29639c8 --- /dev/null +++ b/.github/workflows/test-check-version-pinning.yml @@ -0,0 +1,35 @@ +name: Test Check Version Pinning + +on: + push: + paths: + - "check-version-pinning/**" + pull_request: + paths: + - "check-version-pinning/**" + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af68 # v4.2.2 + with: + fetch-depth: 0 # Ensures complete history for relevant analysis + + - name: Set up Python + uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 + with: + python-version: "3.11" + cache: "pip" + + - name: Install dependencies + run: | + cd check-version-pinning + pip install -r requirements.txt + + - name: Run Tests + run: | + cd check-version-pinning + python -m unittest discover -s . -p 'test_*.py'