Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
andife authored Aug 27, 2024
2 parents 04eb8b1 + b17fa5b commit f678407
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 14 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
uses: ./.github/workflows/release_linux_x86_64.yml
with:
os: "linux_x86_64"
secrets: inherit

call-workflow-ubuntu_aarch64:
strategy:
Expand All @@ -42,22 +43,25 @@ jobs:
uses: ./.github/workflows/release_linux_aarch64.yml
with:
os: "linux_aarch64"
secrets: inherit

call-workflow-win:
strategy:
matrix:
os: ['windows-latest']
uses: ./.github/workflows/release_win.yml
with:
os: "win"
os: "win"
secrets: inherit

call-workflow-mac:
strategy:
matrix:
os: ['mac-latest']
uses: ./.github/workflows/release_mac.yml
with:
os: "macos"
os: "macos"
secrets: inherit



Expand All @@ -78,7 +82,7 @@ jobs:

steps:

- uses: actions/download-artifact@v4
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
with:
pattern: wheels*
path: dist
Expand Down
18 changes: 10 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@9a9194f87191a7e9055e3e9b95b8cfb13023bb08

- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3
with:
python-version: ${{ matrix.python_version }}

Expand Down Expand Up @@ -158,16 +158,16 @@ jobs:
- name: Upload coverage to Codecov
if: always()
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673
with:
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a
with:
name: Test Results (${{ matrix.os }}-{{ matrix.python_version }})
path: pytest.xml
name: TestResults-(${{ matrix.os }}-${{ matrix.python_version }})
path: pytest.xml

# Note that the test data should be generated with numpy>=2.0.
# numpy 1.x and numpy 2.0 produce slightly different numerical values.
Expand Down Expand Up @@ -219,11 +219,13 @@ jobs:
if: always()
steps:
- name: Download Artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
with:
path: artifacts
pattern: TestResults*
merge-multiple: true

- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
uses: EnricoMi/publish-unit-test-result-action@567cc7f8dcea3eba5da355f6ebc95663310d8a07
with:
files: "artifacts/**/*.xml"
2 changes: 1 addition & 1 deletion .github/workflows/release_linux_x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
python -m pip install dist/*manylinux2014_x86_64.whl
pytest
- uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b
- uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a
with:
name: wheels-${{ inputs.os }}-${{ matrix.python-version }}
path: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
cd onnx
pytest
- uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b
- uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a
with:
name: wheels-${{ inputs.os }}-${{ matrix.python-version }}-${{matrix.architecture}}
path: ./onnx/dist
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
# format to the repository Actions tab.
- name: "Upload artifact"
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.0
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a
with:
name: SARIF file
path: results.sarif
Expand Down

0 comments on commit f678407

Please sign in to comment.