Skip to content

Commit

Permalink
Upgrade upload and download artifacts GH Actions to v4
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertoPrevato committed Jan 12, 2024
1 parent 44d04e4 commit 32e250a
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ jobs:
fi
- name: Upload pytest test results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: pytest-results-${{ matrix.os }}-${{ matrix.python-version }}
path: junit/pytest-results-${{ matrix.os }}-${{ matrix.python-version }}.xml
Expand All @@ -142,18 +142,18 @@ jobs:
- name: Install distribution dependencies
run: pip install --upgrade twine setuptools wheel
if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.10
if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.11

- name: Create distribution package
run: python setup.py sdist
if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.10
if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.11

- name: Upload distribution package
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: dist
name: dist-ubuntu-no-wheels
path: dist
if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.10
if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.11

build-wheels:
needs: build
Expand Down Expand Up @@ -206,9 +206,9 @@ jobs:
run: |
python -m build
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: dist
name: dist-${{ matrix.os }}-${{ matrix.python-version }}
path: dist

- name: Test wheels
Expand All @@ -224,9 +224,10 @@ jobs:
if: github.event_name == 'release' || github.event_name == 'workflow_dispatch'
steps:
- name: Download a distribution artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: dist
name: dist-*
merge-multiple: true
path: dist

- name: Use Python 3.11
Expand Down

0 comments on commit 32e250a

Please sign in to comment.