diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 126376e..660f26e 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -25,11 +25,11 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 with: fetch-depth: 0 - - uses: hynek/build-and-inspect-python-package@v2 + - uses: hynek/build-and-inspect-python-package@c52c3a4710070b50470d903818a7b25115dcd076 # v2.13.0 test-publish: needs: [dist] @@ -42,12 +42,12 @@ jobs: if: github.event_name == 'release' && github.event.action == 'published' steps: - - uses: actions/download-artifact@v4 + - uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0 with: name: Packages path: dist - - uses: pypa/gh-action-pypi-publish@release/v1 + - uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4 if: github.event_name == 'release' && github.event.action == 'published' with: repository-url: https://test.pypi.org/legacy/ @@ -62,9 +62,9 @@ jobs: if: github.event_name == 'release' && github.event.action == 'published' steps: - - uses: actions/download-artifact@v4 + - uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0 with: name: Packages path: dist - - uses: pypa/gh-action-pypi-publish@release/v1 + - uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index da1953d..0506f00 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,19 +21,12 @@ jobs: name: Format runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - name: Install uv - uses: astral-sh/setup-uv@v6 - with: - enable-cache: true - cache-dependency-glob: "uv.lock" - - name: "Set up Python" - uses: actions/setup-python@v5 - with: - python-version-file: ".python-version" + uses: astral-sh/setup-uv@557e51de59eb14aaaba2ed9621916900a91d50c6 # v6.6.1 - name: Install the project run: uv sync --group nox - - uses: pre-commit/action@v3.0.1 + - uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1 with: extra_args: --hook-stage manual --all-files - name: Run PyLint @@ -54,26 +47,18 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - name: Install uv - uses: astral-sh/setup-uv@v6 + uses: astral-sh/setup-uv@557e51de59eb14aaaba2ed9621916900a91d50c6 # v6.6.1 with: - enable-cache: true - cache-dependency-glob: "uv.lock" - - - name: Set up Python ${{ matrix.python-version }} - run: uv python install ${{ matrix.python-version }} - - - name: Install the project - run: uv sync --group test + python-version: ${{ matrix.python-version }} - - name: Test package + - name: Run tests run: >- - uv run pytest -ra --cov --cov-report=xml --cov-report=term + uv run --group test pytest --cov --cov-report=xml --cov-report=term --durations=20 - name: Upload coverage report - uses: codecov/codecov-action@v5.4.3 + uses: codecov/codecov-action@fdcc8476540edceab3de004e990f80d881c6cc00 # v5.5.0 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/uv.lock b/uv.lock index 1d45e04..5991ee6 100644 --- a/uv.lock +++ b/uv.lock @@ -652,7 +652,6 @@ wheels = [ [[package]] name = "optional-dependencies" -version = "0.3.3.dev12+gac71e2d" source = { editable = "." } dependencies = [ { name = "packaging" },