forked from GenXProject/GenX.jl
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,100 changed files
with
85,798 additions
and
403,900 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Documenter | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: [main] | ||
tags: ['*'] | ||
|
||
jobs: | ||
Documenter: | ||
permissions: | ||
contents: write | ||
name: Documentation | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: julia-actions/julia-buildpkg@latest | ||
- uses: julia-actions/julia-docdeploy@latest | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} |
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Test-examples | ||
|
||
on: | ||
push: | ||
schedule: | ||
- cron: 21 4 * * * # Run at 12:21am US Eastern time | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
branch: ["main", "develop"] | ||
version: ["1.8", "1.9", '1'] | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ matrix.branch }} | ||
- uses: julia-actions/[email protected] | ||
- uses: julia-actions/setup-julia@latest | ||
with: | ||
version: ${{ matrix.version }} | ||
- uses: julia-actions/julia-buildpkg@v1 | ||
- name: Test examples | ||
shell: julia --project=. --color=yes {0} | ||
run: | | ||
using GenX | ||
using Test | ||
base_path = Base.dirname(Base.dirname(pathof(GenX))) | ||
examples_path = joinpath(base_path, "example_systems") | ||
if !isdir(examples_path) | ||
@warn "No example systems found in $examples_path" | ||
exit(0) | ||
end | ||
@testset "Test examples" begin | ||
for example_dir in readdir(examples_path, join=true) | ||
if isdir(example_dir) && isfile(joinpath(example_dir, "Run.jl")) | ||
@info "Running example in $example_dir" | ||
@test isnothing(run_genx_case!(example_dir)) | ||
end | ||
end | ||
end |
This file contains 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
This file contains 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
Oops, something went wrong.