Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix tests (outdated upload/download-artifact) #430

Merged
merged 9 commits into from
Oct 8, 2024
4 changes: 2 additions & 2 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v2.4.0
uses: actions/checkout@v4.2.1

- name: Run Labeler
uses: crazy-max/ghaction-github-labeler@v3.1.1
uses: crazy-max/ghaction-github-labeler@v5.0.0
with:
skip-delete: true
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v2.4.0
uses: actions/checkout@v4.2.1
with:
fetch-depth: 2

- name: Set up Python
uses: actions/setup-python@v2.3.2
uses: actions/setup-python@v5.2.0
with:
python-version: "3.9"

Expand All @@ -36,7 +36,7 @@ jobs:
- name: Detect and tag new version
id: check-version
if: steps.check-parent-commit.outputs.sha
uses: salsify/[email protected].1
uses: salsify/[email protected].3
with:
version-command: |
bash -o pipefail -c "poetry version | awk '{ print \$2 }'"
Expand All @@ -51,21 +51,21 @@ jobs:
poetry build --ansi
- name: Publish package on PyPI
if: steps.check-version.outputs.tag
uses: pypa/gh-action-pypi-publish@v1.5.0
uses: pypa/gh-action-pypi-publish@v1.10.3
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}

- name: Publish package on TestPyPI
if: "! steps.check-version.outputs.tag"
uses: pypa/gh-action-pypi-publish@v1.5.0
uses: pypa/gh-action-pypi-publish@v1.10.3
with:
user: __token__
password: ${{ secrets.TEST_PYPI_TOKEN }}
repository_url: https://test.pypi.org/legacy/

- name: Publish the release notes
uses: release-drafter/release-drafter@v5.18.1
uses: release-drafter/release-drafter@v6.0.0
with:
publish: ${{ steps.check-version.outputs.tag != '' }}
tag: ${{ steps.check-version.outputs.tag }}
Expand Down
17 changes: 9 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ jobs:

steps:
- name: Check out the repository
uses: actions/checkout@v4
uses: actions/checkout@v4.2.1

- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v5
uses: actions/setup-python@v5.2.0
with:
python-version: ${{ matrix.python }}
# cache: pip
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
result = "${{ runner.os }}-{}-{}-pre-commit".format(python, digest[:8])
print("::set-output name=result::{}".format(result))
- name: Restore pre-commit cache
uses: actions/cache@v2.1.7
uses: actions/cache@v4.1.0
if: matrix.session == 'pre-commit'
with:
path: ~/.cache/pre-commit
Expand All @@ -86,14 +86,15 @@ jobs:
nox --python=${{ matrix.python }}
- name: Upload coverage data
if: always() && matrix.session == 'tests_not_slow'
uses: "actions/upload-artifact@v2.3.1"
uses: actions/upload-artifact@v4.4.1
with:
name: coverage-data
include-hidden-files: true
path: ".coverage.*"

- name: Upload documentation
if: matrix.session == 'docs-build'
uses: actions/upload-artifact@v2.3.1
uses: actions/upload-artifact@v4.4.1
with:
name: docs
path: docs/_build
Expand All @@ -103,10 +104,10 @@ jobs:
needs: tests
steps:
- name: Check out the repository
uses: actions/checkout@v2.4.0
uses: actions/checkout@v4.2.1

- name: Set up Python
uses: actions/setup-python@v2.3.2
uses: actions/setup-python@v5.2.0
with:
python-version: "3.9"

Expand All @@ -124,7 +125,7 @@ jobs:
pipx inject --pip-args=--constraint=$(pwd)/.github/workflows/constraints.txt nox nox-poetry
nox --version
- name: Download coverage data
uses: actions/download-artifact@v2.1.0
uses: actions/download-artifact@v4.1.8
with:
name: coverage-data

Expand Down
Loading