Merge pull request #107 from hanjinliu/more-log #421
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: tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - "v*" # Push events to matching v*, i.e. v1.0, v20.15.10 | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| name: ${{ matrix.platform }} (${{ matrix.python-version }}) ${{ matrix.backend }} | |
| runs-on: ${{ matrix.platform }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.11", "3.14"] | |
| platform: [ubuntu-latest, macos-latest, windows-latest] | |
| backend: [pyqt6] | |
| steps: | |
| - name: Cancel Previous Runs | |
| uses: styfle/cancel-workflow-action@0.11.0 | |
| with: | |
| access_token: ${{ github.token }} | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - uses: tlambert03/setup-qt-libs@v1.5 | |
| - name: Install dependencies | |
| run: python -m pip install .[testing] --upgrade hatch | |
| - name: Test | |
| uses: aganders3/headless-gui@v1 | |
| with: | |
| run: hatch -v run +backend=${{ matrix.backend }} test:run | |
| - name: Upload coverage reports to Codecov | |
| uses: codecov/codecov-action@v4.0.1 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| slug: hanjinliu/himena-relion |