Merge pull request #127 from quarkslab/dependabot/github_actions/acti… #297
This file contains hidden or 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
| name: Quokka Python Package | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "bindings/python/**" | |
| - "proto/**" | |
| - "tests/python/**" | |
| - "pyproject.toml" | |
| - "setup.py" | |
| - "MANIFEST.in" | |
| - ".github/workflows/python.yml" | |
| pull_request: | |
| branches: ["**"] | |
| paths: | |
| - "bindings/python/**" | |
| - "proto/**" | |
| - "tests/python/**" | |
| - "pyproject.toml" | |
| - "setup.py" | |
| - "MANIFEST.in" | |
| - ".github/workflows/python.yml" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: {} | |
| jobs: | |
| python-test: | |
| name: "Python ${{ matrix.python-version }} / ${{ matrix.os }}" | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| python-version: ["3.10", "3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| lfs: true | |
| - uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install libmagic (macOS) | |
| if: runner.os == 'macOS' | |
| run: brew install libmagic | |
| - run: pip install '.[test]' | |
| - name: Tests | |
| run: pytest tests/python |