mirror of
https://github.com/ANL-CEEESA/RELOG.git
synced 2025-12-06 07:48:50 -06:00
Move tests to a separate package; update GitHub CI and docs
This commit is contained in:
4
.github/workflows/lint.yml
vendored
4
.github/workflows/lint.yml
vendored
@@ -14,10 +14,10 @@ jobs:
|
||||
shell: julia --color=yes {0}
|
||||
run: |
|
||||
using Pkg
|
||||
Pkg.add(PackageSpec(name="JuliaFormatter", version="0.14.4"))
|
||||
Pkg.add(PackageSpec(name="JuliaFormatter", version="1"))
|
||||
using JuliaFormatter
|
||||
format("src", verbose=true)
|
||||
format("test", verbose=true)
|
||||
format("test/src", verbose=true)
|
||||
out = String(read(Cmd(`git diff`)))
|
||||
if isempty(out)
|
||||
exit(0)
|
||||
|
||||
14
.github/workflows/test.yml
vendored
14
.github/workflows/test.yml
vendored
@@ -21,5 +21,15 @@ jobs:
|
||||
with:
|
||||
version: ${{ matrix.version }}
|
||||
arch: ${{ matrix.arch }}
|
||||
- uses: julia-actions/julia-buildpkg@v1
|
||||
- uses: julia-actions/julia-runtest@v1
|
||||
- name: Run tests
|
||||
shell: julia --color=yes --project=test {0}
|
||||
run: |
|
||||
using Pkg
|
||||
Pkg.develop(path=".")
|
||||
Pkg.update()
|
||||
using RELOGT
|
||||
try
|
||||
runtests()
|
||||
catch
|
||||
exit(1)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user