python: improve GH testing workflows #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This routinely checks that published packages are installable and work | |
# properly. | |
name: Python - test published packages | |
on: | |
schedule: | |
- cron: '42 4 * * *' # Run daily | |
# TODO: remove when ready | |
pull_request: | |
paths: | |
- 'python/**' | |
- 'tests_data/**' | |
- '.github/workflows/**' | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
unit-testing: | |
strategy: | |
matrix: | |
# python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ] | |
# os: [ "ubuntu-latest", "macos-latest", "windows-latest" ] | |
python-version: [ "3.9" ] | |
os: [ "ubuntu-latest" ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # pin@v4 | |
- name: Setup Python | |
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # pin@v5 | |
with: | |
python-version: '${{ matrix.python-version }}' | |
- name: Install magika | |
run: python3 -m pip install magika | |
- run: magika --version | |
- run: python3 -c 'import magika; print(magika.__version__)' | |
- run: magika -r tests_data/basic |