Repository navigation
Merge branch 'kb-impl/DynamicObjects-snag.queued-node-rend-cd513645' #116
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: Run tests | |
| on: | |
| push: | |
| branches: [main, dev, pre-inference] | |
| pull_request: | |
| # `edited` fires on title/body edits, NOT on new commits — pushing a fix to | |
| # a PR must re-run the suite, which is what `synchronize` reports. | |
| types: [opened, synchronize, reopened] | |
| permissions: | |
| actions: write | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| julia-version: ['lts', '1', 'pre'] | |
| julia-arch: [x64] | |
| os: [ubuntu-latest, windows-latest, macOS-latest] | |
| exclude: | |
| - os: macOS-latest | |
| julia-arch: x86 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Configure git for private repos | |
| run: git config --global url."https://x-access-token:${{ secrets.PAT_TOKEN }}@github.com/".insteadOf "https://github.com/" | |
| - uses: julia-actions/setup-julia@v2 | |
| with: | |
| version: ${{ matrix.julia-version }} | |
| arch: ${{ matrix.julia-arch }} | |
| - uses: julia-actions/cache@v2 | |
| - name: Develop unregistered dependencies | |
| # Clone outside the checkout: TestItemRunner's @run_package_tests scans the | |
| # package root recursively, so a dependency cloned inside it has its own | |
| # @testitems swept into this suite (without that dependency's test deps). | |
| # The [sources] path is written with forward slashes so it stays a valid | |
| # TOML string on Windows. Treebars integrates on `main` (its `dev` is | |
| # frozen); the @progress marker needs main's loop-iterator walk (37ea8c7). | |
| shell: bash | |
| run: | | |
| git clone -b main https://github.com/nsiccha/Treebars.jl.git "$RUNNER_TEMP/ci-deps/Treebars.jl" | |
| julia --project=. -e 'using Pkg; treebars = replace(joinpath(ENV["RUNNER_TEMP"], "ci-deps", "Treebars.jl"), "\\" => "/"); project_path = Base.active_project(); project = read(project_path, String); remote = "Treebars = {url = \"https://github.com/nsiccha/Treebars.jl\"}"; local_path = "Treebars = {path = \"$treebars\"}"; @assert occursin(remote, project); write(project_path, replace(project, remote => local_path)); Pkg.develop(path=treebars); Pkg.instantiate()' | |
| - name: Run tests | |
| run: julia --project=. --color=yes -e 'using Pkg; Pkg.test(; coverage=true)' |