Skip to content

Commit

Permalink
Revert "Upgrade upload and download artifacts GH Actions to v4"
Browse files Browse the repository at this point in the history
This reverts commit 32e250a.
  • Loading branch information
RobertoPrevato committed Jan 12, 2024
1 parent bcee636 commit e9b5657
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 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@v4
uses: actions/upload-artifact@v3
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.11
if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.10

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

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

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

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

- name: Use Python 3.11
Expand Down

0 comments on commit e9b5657

Please sign in to comment.