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

bump artifact upload/download actions versions #375

Merged
merged 2 commits into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions .github/workflows/readme_listings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ jobs:
- uses: julia-actions/setup-julia@v1
- run: mkdir readme_output
- run: julia readme.jl > readme_output/julia.txt
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: readme_output
name: readme_output-julia
path: readme_output

python:
Expand All @@ -63,9 +63,9 @@ jobs:

- run: mkdir readme_output
- run: python -We readme.py > readme_output/python.txt
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: readme_output
name: readme_output-python
path: readme_output

fortran:
Expand All @@ -90,9 +90,9 @@ jobs:
cd readme_fortran
./build/main > ../readme_output/fortran.txt

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: readme_output
name: readme_output-fortran
path: readme_output

assert:
Expand All @@ -101,9 +101,10 @@ jobs:
steps:
- uses: actions/setup-python@v2
- run: pip install numpy
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: readme_output
pattern: readme_output-*
merge-multiple: true
path: readme_output
- run : python -c 'import numpy as np; import os; dir="readme_output/"; data=[float(np.loadtxt(dir+file)) for file in os.listdir(dir)]; print("data:", data); similar_as_first = np.array([abs(data[0]-k)/data[0] for k in data[1:]]); print("similar_as_first", similar_as_first); assert((similar_as_first < .5).all())'

Expand Down Expand Up @@ -148,8 +149,8 @@ jobs:
startup-options: -nojvm
command: diary('readme_output/matlab.txt'), readme

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: readme_output
name: readme_output-matlab
path: readme_output

14 changes: 8 additions & 6 deletions .github/workflows/tests+pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@ jobs:
- if: matrix.platform == 'ubuntu-latest'
run: rm dist/*-linux_*

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: dist
name: dist-${{platform}}-${{manylinux}}-${{python-version}}
path: dist

- env:
Expand Down Expand Up @@ -219,9 +219,10 @@ jobs:
with:
python-version: "3.11"
- run: pip install twine auditwheel
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: dist
pattern: dist-*
merge-multiple: true
path: dist
- run: twine check --strict dist/*
- run: for i in dist/*-manylinux*.whl; do auditwheel show $i; done;
Expand All @@ -232,9 +233,10 @@ jobs:
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: dist
pattern: dist-*
merge-multiple: true
path: dist
- if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: pypa/gh-action-pypi-publish@unstable/v1
Expand Down
Loading