Skip to content

Commit

Permalink
Merge pull request #812 from akaihola/github-artifacts-v4-newest
Browse files Browse the repository at this point in the history
Use newest v4 upload/download artifacts action
  • Loading branch information
akaihola authored Feb 1, 2025
2 parents 044052c + 4de7804 commit 0471366
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Download wheel uploaded by the build-wheel job
uses: actions/download-artifact@v4.1.7
uses: actions/download-artifact@v4
- name: Run tests in nix-shell
run: |
nix-shell \
Expand Down Expand Up @@ -123,7 +123,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Download wheel uploaded by the build-wheel job
uses: actions/download-artifact@v4.1.7
uses: actions/download-artifact@v4
- name: Install Darker and its dependencies from the wheel built earlier
run: pip install "${{needs.build-wheel.outputs.wheel-path}}[test]"
${{ matrix.upgrade }} ${{ matrix.constraints }}
Expand All @@ -149,7 +149,7 @@ jobs:
uses: astral-sh/setup-uv@v3
- uses: actions/setup-python@v5
- name: Download wheel uploaded by the build-wheel job
uses: actions/download-artifact@v4.1.7
uses: actions/download-artifact@v4
- name: Build source distribution
run: uv build --sdist
- name: Validate distributions
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-working-directory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
echo 'def hello(): return "Hello, World!"' > test.py
- name: Upload test repository
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: test-repo
path: test-repo
Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
fetch-depth: 30

- name: Download test repository
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: test-repo
path: ${{ runner.temp }}/test-repo
Expand Down
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ Internal
- Drop dependency on ``pip`` and ``distutils`` in the weekly CI "future" test. Use
``packaging`` instead.
- No need to use `typing.Pattern` instead of `re.Pattern` in Python 3.9+.
- Always use newest artifact upload/download actions from the v4 series in the CI build.


2.1.1_ - 2024-04-16
Expand Down

0 comments on commit 0471366

Please sign in to comment.