diff --git a/.github/workflows/unit-tests.yaml b/.github/workflows/unit-tests.yaml index e3769d5..0188ea3 100644 --- a/.github/workflows/unit-tests.yaml +++ b/.github/workflows/unit-tests.yaml @@ -6,9 +6,13 @@ on: pull_request: branches: [main] +permissions: {} + jobs: test: runs-on: ubuntu-latest + permissions: + contents: read strategy: matrix: # Test against all Python versions supported in pyproject.toml @@ -16,15 +20,15 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 + uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 with: python-version: ${{ matrix.python-version }} - name: Install the latest version of uv - uses: astral-sh/setup-uv@v6 + uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0 - name: Install dependencies run: | @@ -36,5 +40,5 @@ jobs: - name: Run unit tests with pytest run: | source .venv/bin/activate - # Run all tests in the tests/unittests directory - pytest tests/unittests + # Use the test paths configured in pyproject.toml. + pytest