Skip to content

Commit

Permalink
🧪 Add test runner for check-pinned-versions action
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonBirchall committed Oct 29, 2024
1 parent dcb33bf commit d69ff12
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/test-check-version-pinning.yml
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit d69ff12

Please sign in to comment.