Digraph decode/encode #1593
Workflow file for this run
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: Ubuntu | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| - stable-*.* | |
| schedule: | |
| # Every day at 3:30 AM UTC | |
| - cron: 30 3 * * * | |
| concurrency: | |
| # Group by workflow and ref; the last component ensures that for pull requests | |
| # we limit to one concurrent job, but for the main/stable branches we don't | |
| group: ${{ github.workflow }}-${{ github.ref }}-${{ (github.ref != 'refs/heads/main' && !startsWith(github.ref, 'refs/heads/stable-')) || github.run_number }} | |
| # Only cancel intermediate pull request builds | |
| cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} | |
| jobs: | |
| test-unix: | |
| name: "GAP ${{ matrix.gap-version }} / ${{ matrix.mode == 'onlyneeded' && 'only needed' || 'needed+suggested' }} packages" | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| gap-version: | |
| - master | |
| - stable-4.15 | |
| - v4.14 | |
| - v4.13 | |
| - v4.12 | |
| mode: | |
| - onlyneeded | |
| - default | |
| include: | |
| - mode: onlyneeded | |
| pkgs-to-clone: https://github.com/digraphs/graphviz.git | |
| pkgs-to-build: io orb datastructures profiling | |
| - mode: default | |
| pkgs-to-clone: https://github.com/digraphs/graphviz.git https://github.com/gap-packages/NautyTracesInterface.git | |
| pkgs-to-build: io orb datastructures profiling grape NautyTracesInterface | |
| - gap-version: v4.11 # Note: NautyTracesInterface requires GAP 4.12 | |
| mode: default # There wouldn't be much point testing GAP v4.11 with only needed packages. The only difference is whether Grape is loaded. | |
| pkgs-to-clone: https://github.com/digraphs/graphviz.git | |
| pkgs-to-build: io* orb* datastructures* profiling* grape* | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Output g++ version . . . | |
| run: g++ --version | |
| - name: "Install GAP . . ." | |
| uses: gap-actions/setup-gap@v3 | |
| with: | |
| gap-version: ${{ matrix.gap-version }} | |
| - name: "Build Digraphs . . ." | |
| uses: gap-actions/build-pkg@v2 | |
| - name: "Clone additional GAP packages . . ." | |
| run: | | |
| for PKG in ${{ matrix.pkgs-to-clone }}; do | |
| cd ${GAPROOT}/pkg | |
| git clone $PKG | |
| done | |
| - name: "Build relevant GAP packages . . ." | |
| run: | | |
| cd ${GAPROOT}/pkg | |
| ../bin/BuildPackages.sh --strict ${{ matrix.pkgs-to-build }} | |
| - name: "Install digraphs-lib . . ." | |
| uses: actions/checkout@v5 | |
| with: | |
| repository: digraphs/digraphs-lib | |
| path: digraphs-lib | |
| - name: "Run DigraphsTestInstall . . ." | |
| uses: gap-actions/run-pkg-tests@v4 | |
| with: | |
| testfile: tst/github_actions/install.g | |
| mode: ${{ matrix.mode }} | |
| - name: "Run DigraphsTestStandard . . ." | |
| uses: gap-actions/run-pkg-tests@v4 | |
| with: | |
| testfile: tst/github_actions/standard.g | |
| mode: ${{ matrix.mode }} | |
| - name: "Run DigraphsTestManualExamples . . ." | |
| uses: gap-actions/run-pkg-tests@v4 | |
| with: | |
| testfile: tst/github_actions/examples.g | |
| mode: ${{ matrix.mode }} | |
| - name: "Run DigraphsTestExtreme . . ." | |
| uses: gap-actions/run-pkg-tests@v4 | |
| with: | |
| testfile: tst/github_actions/extreme.g | |
| mode: ${{ matrix.mode }} | |
| - uses: gap-actions/process-coverage@v3 | |
| if: ${{ matrix.gap-version == 'master' && matrix.mode == 'default'}} | |
| - uses: codecov/codecov-action@v5 | |
| if: ${{ matrix.gap-version == 'master' && matrix.mode == 'default'}} | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} |