-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply COPIERTemplate 0.6.0 with minimum optional questions (#50)
- Loading branch information
1 parent
11e9c7c
commit e843fd1
Showing
28 changed files
with
2,541 additions
and
2,313 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
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,12 @@ | ||
# Changes here will be overwritten by Copier | ||
AnswerStrategy: minimum | ||
AuthorEmail: [email protected] | ||
AuthorName: Suvayu Ali | ||
Indentation: 4 | ||
JuliaMinVersion: '1.6' | ||
License: Apache-2.0 | ||
PackageName: TulipaIO | ||
PackageOwner: TulipaEnergy | ||
PackageUUID: 7b3808b7-0819-42d4-885c-978ba173db11 | ||
_commit: v0.6.0 | ||
_src_path: https://github.com/abelsiqueira/COPIERTemplate.jl |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "weekly" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,53 @@ | ||
name: Docs | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- "docs/**" | ||
- "src/**" | ||
- "*.toml" | ||
tags: ["*"] | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- "docs/**" | ||
- "src/**" | ||
- "*.toml" | ||
types: [opened, synchronize, reopened] | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- "docs/**" | ||
- "src/**" | ||
- "*.toml" | ||
tags: ["*"] | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- "docs/**" | ||
- "src/**" | ||
- "*.toml" | ||
types: [opened, synchronize, reopened] | ||
|
||
concurrency: | ||
# Skip intermediate builds: always. | ||
# Cancel intermediate builds: only if it is a pull request build. | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} | ||
# Skip intermediate builds: always. | ||
# Cancel intermediate builds: only if it is a pull request build. | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} | ||
|
||
jobs: | ||
docs: | ||
name: Documentation | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: julia-actions/setup-julia@v1 | ||
with: | ||
version: "1" | ||
- run: | | ||
julia --project=docs -e ' | ||
using Pkg | ||
Pkg.develop(PackageSpec(path=pwd())) | ||
Pkg.instantiate()' | ||
- run: | | ||
julia --project=docs -e ' | ||
using Documenter: DocMeta, doctest | ||
using TulipaIO | ||
DocMeta.setdocmeta!(TulipaIO, :DocTestSetup, :(using TulipaIO); recursive=true) | ||
doctest(TulipaIO)' | ||
- run: julia --project=docs docs/make.jl | ||
env: | ||
JULIA_PKG_SERVER: "" | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} | ||
docs: | ||
name: Documentation | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: julia-actions/setup-julia@v2 | ||
with: | ||
version: "1" | ||
- name: Use Julia cache | ||
uses: julia-actions/cache@v2 | ||
- run: | | ||
julia --project=docs -e ' | ||
using Pkg | ||
Pkg.develop(PackageSpec(path=pwd())) | ||
Pkg.instantiate()' | ||
- run: | | ||
julia --project=docs -e ' | ||
using Documenter: DocMeta, doctest | ||
using TulipaIO | ||
DocMeta.setdocmeta!(TulipaIO, :DocTestSetup, :(using TulipaIO); recursive=true) | ||
doctest(TulipaIO)' | ||
- run: julia --project=docs docs/make.jl | ||
env: | ||
JULIA_PKG_SERVER: "" | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} |
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 |
---|---|---|
@@ -1,36 +1,36 @@ | ||
name: Lint | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: ["*"] | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
tags: ["*"] | ||
pull_request: | ||
|
||
concurrency: | ||
# Skip intermediate builds: always. | ||
# Cancel intermediate builds: only if it is a pull request build. | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} | ||
# Skip intermediate builds: always. | ||
# Cancel intermediate builds: only if it is a pull request build. | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} | ||
|
||
jobs: | ||
lint: | ||
name: Linting | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone | ||
uses: actions/checkout@v3 | ||
- name: Setup Julia | ||
uses: julia-actions/setup-julia@v1 | ||
with: | ||
version: "1" | ||
- name: Use Julia cache | ||
uses: julia-actions/cache@v1 | ||
- name: Install JuliaFormatter.jl | ||
run: julia -e 'using Pkg; pkg"add JuliaFormatter"' | ||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
- name: Install pre-commit | ||
run: pip install pre-commit | ||
- name: Run pre-commit | ||
run: SKIP=no-commit-to-branch pre-commit run -a | ||
lint: | ||
name: Linting | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone | ||
uses: actions/checkout@v3 | ||
- name: Setup Julia | ||
uses: julia-actions/setup-julia@v1 | ||
with: | ||
version: "1" | ||
- name: Use Julia cache | ||
uses: julia-actions/cache@v1 | ||
- name: Install JuliaFormatter.jl | ||
run: julia -e 'using Pkg; pkg"add JuliaFormatter"' | ||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
- name: Install pre-commit | ||
run: pip install pre-commit | ||
- name: Run pre-commit | ||
run: SKIP=no-commit-to-branch pre-commit run -a |
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,52 @@ | ||
name: Reusable test | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
version: | ||
required: false | ||
type: string | ||
default: "1" | ||
os: | ||
required: false | ||
type: string | ||
default: ubuntu-latest | ||
arch: | ||
required: false | ||
type: string | ||
default: x64 | ||
allow_failure: | ||
required: false | ||
type: boolean | ||
default: false | ||
run_codecov: | ||
required: false | ||
type: boolean | ||
default: false | ||
secrets: | ||
codecov_token: | ||
required: true | ||
|
||
jobs: | ||
test: | ||
name: Julia ${{ inputs.version }} - ${{ inputs.os }} - ${{ inputs.arch }} - ${{ github.event_name }} | ||
runs-on: ${{ inputs.os }} | ||
continue-on-error: ${{ inputs.allow_failure }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: julia-actions/setup-julia@v2 | ||
with: | ||
version: ${{ inputs.version }} | ||
arch: ${{ inputs.arch }} | ||
- name: Use Julia cache | ||
uses: julia-actions/cache@v2 | ||
- uses: julia-actions/julia-buildpkg@v1 | ||
- uses: julia-actions/julia-runtest@v1 | ||
- uses: julia-actions/julia-processcoverage@v1 | ||
if: ${{ inputs.run_codecov }} | ||
- uses: codecov/codecov-action@v4 | ||
if: ${{ inputs.run_codecov }} | ||
with: | ||
file: lcov.info | ||
token: ${{ secrets.codecov_token }} |
Oops, something went wrong.