Skip to content
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.

Commit

Permalink
Merge pull request #19 from Energy-MAC/dev0-3
Browse files Browse the repository at this point in the history
Dev03
  • Loading branch information
jd-lara authored Feb 6, 2020
2 parents 4a22688 + f238c17 commit d41a593
Show file tree
Hide file tree
Showing 93 changed files with 4,277 additions and 7,075 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/format-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: format-check

on:
push:
branches:
- 'master'
- 'release-'
tags: '*'
pull_request:

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
julia-version: [1.3.0]
julia-arch: [x86]
os: [ubuntu-latest]
steps:
- uses: julia-actions/setup-julia@latest
with:
version: ${{ matrix.julia-version }}

- uses: actions/checkout@v1
- name: Install JuliaFormatter and format
run: |
julia -e 'using Pkg; Pkg.add(PackageSpec(name="JuliaFormatter"))'
julia -e 'using JuliaFormatter; include(".github/workflows/formatter_code.jl")'
- name: Format check
run: |
julia -e '
out = Cmd(`git diff --name-only`) |> read |> String
if out == ""
exit(0)
else
@error "Some files have not been formatted !!!"
write(stdout, out)
exit(1)
end'
11 changes: 11 additions & 0 deletions .github/workflows/formatter_code.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
main_paths = ["."]
for main_path in main_paths
format(
main_path;
whitespace_ops_in_indices = true,
remove_extra_newlines = true,
verbose = true,
always_for_in = true,
whitespace_typedefs = true,
)
end
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ docs/site/
*.ipynb

Manifest.toml
.vscode

################################################################################
# Operating systems #
Expand Down
32 changes: 16 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,18 @@
## Documentation: http://docs.travis-ci.org/user/languages/julia/
language: julia
codecov: true
os:
- linux
- osx
- windows
julia:
- 1.2
- 1.3
- nightly


codecov: true

notifications:
email: false

## uncomment the following lines to allow failures on nightly julia
## (tests will run but not make your overall status red)
matrix:
allow_failures:
- julia: 1.3
- julia: nightly
- os: osx
notifications:
email: false

## uncomment and modify the following lines to manually install system packages
#addons:
Expand All @@ -31,13 +22,22 @@ matrix:
#before_script: # homebrew for mac
# - if [ $TRAVIS_OS_NAME = osx ]; then brew install gcc; fi


jobs:
fast_finish: true
allow_failures:
- julia: nightly
- os: osx
include:
- stage: "Documentation"
julia: 1.2
os: linux
julia: 1.3
script:
- julia --project=docs -e 'using Pkg; Pkg.instantiate(); Pkg.add(PackageSpec(path=pwd()));'
- julia --project=docs --color=yes -e 'include("docs/make.jl")'
- julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd()));
Pkg.instantiate()'
- julia --project=docs/ docs/make.jl
after_success: skip
after_success: julia -e '
using Pkg;
Pkg.add("Coverage");
using Coverage;
Codecov.submit(process_folder());'
16 changes: 9 additions & 7 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
name = "LITS"
uuid = "86b0dc02-7903-11e9-325f-f195ca7e6c1a"
version = "0.2.3"
version = "0.3.0"

[deps]
DiffEqBase = "2b5f629d-d688-5b77-993f-72d75c75574e"
DiffEqCallbacks = "459566f4-90b8-5000-8ac3-15dfb0a30def"
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
InfrastructureSystems = "2cd47ed4-ca9b-11e9-27f2-ab636a7671f1"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
NLsolve = "2774e3e8-f4cf-5e23-947b-6d7e65073b56"
PowerSystems = "bcd98974-b02a-5e2f-9ee0-a103f5c450dd"
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
Sundials = "c3572dad-4567-51f8-b174-8c6c989267f4"

[compat]
DiffEqBase = "~6.3"
DiffEqCallbacks = "~2.8"
NLsolve = "~4.1"
PowerSystems = "~0.5"
Sundials = "~3.7.0"
DiffEqBase = "6"
ForwardDiff = "~v0.10"
InfrastructureSystems = "~0.5.5"
NLsolve = "4"
PowerSystems = "~0.9"
Sundials = "3"
julia = "^1.2"

[extras]
Expand Down
8 changes: 8 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
status:
project: # measuring the overall project coverage
default: # context, you can create multiple ones with custom titles
enabled: yes # must be yes|true to enable this status
target: 80%
threshold: 5% # allowed to drop X% and still result in a "success" PR status
branches:
threshold: 5% # allowed to drop X% and still result in a "success" commit status
15 changes: 8 additions & 7 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@ makedocs(
"Home" => "index.md",
# "User Guide" => "man/guide.md",
"Tutorials" => Any[
"Tutorial 1: OMIB" => "Examples/example_OMIB.md",
"Tutorial 2: Dynamic Lines" => "Examples/example_lines.md"
"Tutorial 1: OMIB" => "Examples/example_OMIB.md",
"Tutorial 2: Dynamic Lines" => "Examples/example_lines.md",
],
"Models" => Any[
"Network" => "Models/network.md",
"Generator" => "Models/gens.md",
"Inverter" => "Models/inverters.md"
]
]
"Network" => "Models/network.md",
"Generator" => "Models/gens.md",
"Inverter" => "Models/inverters.md",
"Small Signal" => "Models/small.md",
],
],
)

deploydocs(
Expand Down
Loading

2 comments on commit d41a593

@jd-lara
Copy link
Member Author

@jd-lara jd-lara commented on d41a593 Feb 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/8939

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if Julia TagBot is installed, or can be done manually through the github interface, or via:

git tag -a v0.3.0 -m "<description of version>" d41a593034fe4016b5f752079a75cbfae800d1fc
git push origin v0.3.0

Please sign in to comment.