Skip to content

Commit

Permalink
Fix maturin workflow (#787)
Browse files Browse the repository at this point in the history
  • Loading branch information
ia0 authored Nov 4, 2024
1 parent 7308b8f commit c4649f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/maturin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name: Maturin

on:
pull_request:
push:
branches:
- 'main'
Expand All @@ -10,8 +11,6 @@ on:
schedule:
- cron: '12 3 * * 4' # Refresh the cache weekly.
workflow_dispatch:
# Uncomment to test the workflow in a PR.
# pull_request:

permissions:
contents: read
Expand Down Expand Up @@ -60,6 +59,7 @@ jobs:
- run: python3 ./python/scripts/run_quick_test_magika_cli.py
- run: python3 ./python/scripts/run_quick_test_magika_module.py
- name: Upload wheels
if: github.event_name != 'pull_request'
uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix.platform.runner }}-${{ matrix.platform.target }}
Expand All @@ -79,6 +79,7 @@ jobs:
args: --out=../dist
working-directory: python
- name: Upload sdist
if: github.event_name != 'pull_request'
uses: actions/upload-artifact@v4
with:
name: wheels-sdist
Expand Down
3 changes: 3 additions & 0 deletions rust/cli/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ info "Test against the test suites: $TEST_SUITES"
done
)

# We rely below on the fact that we don't have permission on /etc/shadow.
[ $(id -u) -eq 0 ] && success "No more tests in Docker"

info "Test exit code with at least one error"
test_error() {
files="$1"
Expand Down

0 comments on commit c4649f8

Please sign in to comment.