From b0cd2a4f07aae5995c80e01e4ca1cc5562566a04 Mon Sep 17 00:00:00 2001 From: Joshua Bronson Date: Sat, 24 Dec 2022 10:14:52 -0500 Subject: [PATCH] Update GitHub Action Versions (#265) Co-authored-by: github-actions[bot] --- .github/workflows/lint.yml | 6 +++--- .github/workflows/release-to-pypi.yml | 6 +++--- .github/workflows/release-to-test-pypi.yml | 6 +++--- .github/workflows/test.yml | 8 ++++---- .github/workflows/update_actions.yml | 4 ++-- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 9f4146d..5936340 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -15,13 +15,13 @@ jobs: main: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3.1.0 - - uses: actions/setup-python@v4.3.0 + - uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b + - uses: actions/setup-python@5ccb29d8773c3f3f653e1705f474dfaa8a06a912 with: python-version: '3.11' - run: python -m pip install -U pip setuptools wheel - name: install dependencies run: pip install -r dev-deps/lint.txt - - uses: pre-commit/action@v3.0.0 + - uses: pre-commit/action@646c83fcd040023954eafda54b4db0192ce70507 with: extra_args: --verbose diff --git a/.github/workflows/release-to-pypi.yml b/.github/workflows/release-to-pypi.yml index a1212da..dac4664 100644 --- a/.github/workflows/release-to-pypi.yml +++ b/.github/workflows/release-to-pypi.yml @@ -9,14 +9,14 @@ jobs: main: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3.1.0 - - uses: actions/setup-python@v4.3.0 + - uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b + - uses: actions/setup-python@5ccb29d8773c3f3f653e1705f474dfaa8a06a912 with: python-version: '3.11' - run: python -m pip install -U pip setuptools build - run: python -m build - name: Publish - uses: pypa/gh-action-pypi-publish@v1.6.1 + uses: pypa/gh-action-pypi-publish@c7f29f7adef1a245bd91520e94867e5c6eedddcc with: user: __token__ password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/.github/workflows/release-to-test-pypi.yml b/.github/workflows/release-to-test-pypi.yml index de352af..7482ca9 100644 --- a/.github/workflows/release-to-test-pypi.yml +++ b/.github/workflows/release-to-test-pypi.yml @@ -19,14 +19,14 @@ jobs: main: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3.1.0 - - uses: actions/setup-python@v4.3.0 + - uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b + - uses: actions/setup-python@5ccb29d8773c3f3f653e1705f474dfaa8a06a912 with: python-version: '3.11' - run: python -m pip install -U pip setuptools build - run: python -m build - name: Publish - uses: pypa/gh-action-pypi-publish@v1.6.1 + uses: pypa/gh-action-pypi-publish@c7f29f7adef1a245bd91520e94867e5c6eedddcc with: user: __token__ password: ${{ secrets.TEST_PYPI_API_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f81c83f..3fd9624 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,15 +36,15 @@ jobs: - pyversion: pypy-3.8 - pyversion: pypy-3.7 steps: - - uses: actions/checkout@v3.1.0 - - uses: actions/setup-python@v4.3.0 + - uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b + - uses: actions/setup-python@5ccb29d8773c3f3f653e1705f474dfaa8a06a912 with: python-version: ${{ matrix.pyversion }} cache: pip cache-dependency-path: dev-deps/test.txt - run: python -m pip install -U pip setuptools wheel tox==4.0.16 - name: cache .hypothesis dir - uses: actions/cache@v3.0.11 + uses: actions/cache@c1a5de879eb890d062a85ee0252d6036480b1fe2 with: path: .hypothesis key: hypothesis|${{ runner.os }}|${{ matrix.pyversion }} @@ -54,7 +54,7 @@ jobs: echo PYTEST_ADDOPTS="${PYTEST_ADDOPTS} --cov=bidict --cov-config=.coveragerc --cov-report=xml" >> "${GITHUB_ENV}" - run: tox -e py - name: Upload coverage to Codecov # https://github.com/codecov/codecov-action - uses: codecov/codecov-action@v3.1.1 + uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 if: matrix.enable_coverage with: verbose: true diff --git a/.github/workflows/update_actions.yml b/.github/workflows/update_actions.yml index effc65d..a9cfdfa 100644 --- a/.github/workflows/update_actions.yml +++ b/.github/workflows/update_actions.yml @@ -12,12 +12,12 @@ jobs: main: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3.1.0 + - uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b with: token: ${{ secrets.ACTIONS_VERSION_UPDATER_TOKEN }} # https://github.com/saadmk11/github-actions-version-updater/issues/49#issuecomment-1356182123 # - uses: saadmk11/github-actions-version-updater@v0.7.1 - - uses: saadmk11/github-actions-version-updater@safe-dir + - uses: saadmk11/github-actions-version-updater@66922a38bf9dfb2afa06dee9592da2d8a158ceec with: token: ${{ secrets.ACTIONS_VERSION_UPDATER_TOKEN }} update_version_with: release-commit-sha