use new ewokscore graph analysis #80
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: Test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| workflow_dispatch: | |
| workflow_call: | |
| jobs: | |
| # Build Python package | |
| build: | |
| uses: ewoks-kit/.github/.github/workflows/python-build.yml@main | |
| # Run tests | |
| tests: | |
| needs: build | |
| uses: ewoks-kit/.github/.github/workflows/python-tests.yml@main | |
| secrets: | |
| codecov_token: ${{ secrets.CODECOV_TOKEN }} | |
| with: | |
| os: ${{ matrix.os }} | |
| python-version: ${{ matrix.python-version }} | |
| pytest-args: >- | |
| -v -ra -W error | |
| ${{ matrix.extra-pytest-warnings }} | |
| enable-coverage: ${{ matrix.enable-coverage }} | |
| codecov-flags: "unit" | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| python-version: "3.8" | |
| enable-coverage: "false" | |
| extra-pytest-warnings: "" | |
| - os: ubuntu-latest | |
| python-version: "3.9" | |
| enable-coverage: "false" | |
| # https://github.com/networkx/networkx/issues/7372 | |
| extra-pytest-warnings: "-W ignore::RuntimeWarning:networkx.utils.backends" | |
| - os: ubuntu-latest | |
| python-version: "3.10" | |
| enable-coverage: "false" | |
| extra-pytest-warnings: "" | |
| - os: ubuntu-latest | |
| python-version: "3.11" | |
| enable-coverage: "false" | |
| extra-pytest-warnings: "" | |
| - os: ubuntu-latest | |
| python-version: "3.12" | |
| enable-coverage: "true" | |
| extra-pytest-warnings: "" | |
| - os: ubuntu-latest | |
| python-version: "3.13" | |
| enable-coverage: "false" | |
| extra-pytest-warnings: "" | |
| - os: ubuntu-latest | |
| python-version: "3.14" | |
| enable-coverage: "false" | |
| extra-pytest-warnings: "" | |
| - os: windows-latest | |
| python-version: "3.9" | |
| enable-coverage: "false" | |
| extra-pytest-warnings: "" | |
| - os: windows-latest | |
| python-version: "3.10" | |
| enable-coverage: "false" | |
| extra-pytest-warnings: "" | |
| # Run linter / checks | |
| checks: | |
| uses: ewoks-kit/.github/.github/workflows/python-check.yml@main | |
| with: | |
| enable-black: "false" | |
| enable-flake8: "false" | |
| enable-isort: "false" | |
| enable-ruff: "true" | |
| # Build documentation | |
| docs: | |
| needs: build | |
| uses: ewoks-kit/.github/.github/workflows/python-docs.yml@main | |
| # Run scripts | |
| scripts: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: ewoks-kit/.github/.github/actions/setup-python-package@main | |
| - name: Run all scripts | |
| shell: bash | |
| run: | | |
| for filename in scripts/*; do | |
| echo "Running $filename" | |
| python "$filename" | |
| done |