Skip to content

Commit

Permalink
Merge branch 'main' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
reyammer authored Nov 1, 2024
2 parents ebac72a + 348a34d commit 8368a15
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 581 deletions.
72 changes: 0 additions & 72 deletions .github/workflows/python-build-and-upload-packages.yml

This file was deleted.

69 changes: 0 additions & 69 deletions .github/workflows/python-e2e-test.yml

This file was deleted.

47 changes: 0 additions & 47 deletions .github/workflows/python-pypi.yml

This file was deleted.

21 changes: 20 additions & 1 deletion .github/workflows/python-test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
matrix:
python-version: [ "3.8.x", "3.9.x", "3.10.x", "3.11.x", "3.12.x" ]
os: [ "ubuntu-latest", "macos-latest" ]
# TODO: add windows, ubuntu:20.04
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # pin@v4
Expand Down Expand Up @@ -54,4 +55,22 @@ jobs:

- name: Run the python tests suite
working-directory: python
run: uv run --python $(which python3) pytest tests -m "not slow"
run: uv run --python $(which python3) pytest tests -m "not slow"

- name: Run magika --version
working-directory: python
run: uv run magika --version
shell: bash # Allows for cross-platform

- name: Run magika with tests_data
working-directory: python
# TODO(https://github.com/google/magika/issues/780): Remove "grep || exit 1" when fixed.
run: '(uv run magika -r ../tests_data/basic | grep "code\.asm.*Assembly") || exit 1'

- name: Run "magika cli" quick tests
working-directory: python
run: uv run scripts/run_quick_test_magika_cli.py

- name: Run "magika module" quick tests
working-directory: python
run: uv run scripts/run_quick_test_magika_module.py
Loading

0 comments on commit 8368a15

Please sign in to comment.