mirror of
https://github.com/julia-actions/julia-runtest.git
synced 2026-02-12 11:06:54 +08:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1aec431e02 | ||
|
|
4867b265f3 |
@@ -38,13 +38,15 @@ jobs:
|
||||
arch: ${{ matrix.julia-arch }}
|
||||
- uses: julia-actions/julia-buildpkg@v1
|
||||
- uses: julia-actions/julia-runtest@v1
|
||||
with:
|
||||
annotate: true
|
||||
# with:
|
||||
# annotate: true
|
||||
```
|
||||
|
||||
You can add this workflow to your repository by placing it in a file called `test.yml` in the folder `.github/workflows/`. [More info here](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions).
|
||||
|
||||
Here, setting `annotate: true` causes GitHub "annotations" to appear when reviewing the PR, pointing to failing tests, if any.
|
||||
This functionality is only enabled on Julia 1.8 (even if `annotate` is set to `true`), since currently it does not work on other Julia versions (see #76).
|
||||
|
||||
By default, `annotate` is set to false, but that may change in future releases of this action.
|
||||
### Prefixing the Julia command
|
||||
|
||||
|
||||
@@ -41,7 +41,8 @@ runs:
|
||||
shell: bash
|
||||
- name: Install dependencies in their own (shared) environment
|
||||
run: |
|
||||
if VERSION > v"1.8pre"
|
||||
# Functionality only currently works on a narrow range of Julia versions... see #76
|
||||
if v"1.8pre" < VERSION < v"1.9.0-beta3"
|
||||
using Pkg
|
||||
Pkg.activate("tests-logger-env"; shared=true)
|
||||
Pkg.add(Pkg.PackageSpec(name="GitHubActions", version="0.1"))
|
||||
|
||||
Reference in New Issue
Block a user