Skip to content

Commit 8495bed

Browse files
authored
Merge pull request #53 from harshangrjn/workflow_updates
Workflow updates
2 parents 8ba127f + 2e64ae7 commit 8495bed

19 files changed

Lines changed: 512 additions & 545 deletions

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
2+
version: 2
3+
updates:
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"
8+
open-pull-requests-limit: 50
9+
labels:
10+
- "dependencies"
11+
- "github-actions"

.github/workflows/ci.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,21 @@ jobs:
1111
fail-fast: false
1212
matrix:
1313
version:
14-
- '1.6'
1514
- '1'
16-
- 'nightly'
15+
- '1.10'
1716
os:
1817
- ubuntu-latest
1918
- macOS-latest
2019
- windows-latest
2120
arch:
2221
- x64
2322
steps:
24-
- uses: actions/checkout@v3
25-
- uses: julia-actions/setup-julia@v1
23+
- uses: actions/checkout@v4
24+
- uses: julia-actions/setup-julia@v2
2625
with:
2726
version: ${{ matrix.version }}
2827
arch: ${{ matrix.arch }}
29-
- uses: actions/cache@v3
28+
- uses: actions/cache@v4
3029
env:
3130
cache-name: cache-artifacts
3231
with:
@@ -36,13 +35,16 @@ jobs:
3635
${{ runner.os }}-test-${{ env.cache-name }}-
3736
${{ runner.os }}-test-
3837
${{ runner.os }}-
38+
- uses: julia-actions/julia-buildpkg@v1
39+
- uses: julia-actions/julia-runtest@v1
40+
with:
41+
depwarn: error
3942
- uses: julia-actions/julia-buildpkg@latest
4043
continue-on-error: ${{ matrix.version == 'nightly' }}
4144
- uses: julia-actions/julia-runtest@latest
4245
continue-on-error: ${{ matrix.version == 'nightly' }}
43-
with:
44-
depwarn: error
4546
- uses: julia-actions/julia-processcoverage@v1
46-
- uses: codecov/codecov-action@v3
47+
- uses: codecov/codecov-action@v5
4748
with:
48-
file: lcov.info
49+
file: lcov.info
50+
token: ${{ secrets.CODECOV_TOKEN }}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Simple workflow for deploying static content to GitHub Pages
2+
name: Deploy Documentation to Pages
3+
4+
on:
5+
# Runs on pushes targeting the default branch
6+
workflow_run:
7+
workflows: ["Documentation"]
8+
types:
9+
- completed
10+
11+
# Allows you to run this workflow manually from the Actions tab
12+
workflow_dispatch:
13+
14+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
15+
permissions:
16+
contents: read
17+
pages: write
18+
id-token: write
19+
20+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
21+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
22+
concurrency:
23+
group: "pages"
24+
cancel-in-progress: false
25+
26+
jobs:
27+
# Single deploy job since we're just deploying
28+
deploy:
29+
environment:
30+
name: github-pages
31+
url: ${{ steps.deployment.outputs.page_url }}
32+
runs-on: ubuntu-latest
33+
steps:
34+
- name: Checkout
35+
uses: actions/checkout@v4
36+
with:
37+
ref: gh-pages
38+
- name: Setup Pages
39+
uses: actions/configure-pages@v5
40+
- name: Upload artifact
41+
uses: actions/upload-pages-artifact@v3
42+
with:
43+
# Upload entire repository
44+
path: '.'
45+
- name: Deploy to GitHub Pages
46+
id: deployment
47+
uses: actions/deploy-pages@v4

.github/workflows/documentation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
name: Documentation
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1515
- uses: julia-actions/setup-julia@latest
1616
with:
1717
version: '1'
@@ -21,4 +21,4 @@ jobs:
2121
env:
2222
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2323
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
24-
run: julia --project=docs docs/make.jl
24+
run: julia --color=yes --project=docs/ docs/make.jl

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
LaplacianOpt.jl Change Log
22
=========================
33

4+
### v0.7.2
5+
- Update codecov/codecov-action
6+
- Clean up of `src/utility.jl`, `src/data.jl`
7+
48
### v0.7.1
59
- Clean up of `round_zeros_ones!`, `laplacian_matrix`, `_violated_eigen_vector`, `weighted_adjacency_matrix`, `edge_combinations`, `optimal_graph_edges` functions
610
- Added support for cheeger constant of graph based on set cardinality (updated MILP formulation) and set volume definitions

CITATION.bib

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
@article{LOpt_TCNS2024,
22
title={Optimal Robust Network Design: Formulations and Algorithms for Maximizing Algebraic Connectivity},
33
author={Somisetty, Neelkamal and Nagarajan, Harsha and Darbha, Swaroop},
4-
journal={IEEE Transactions on Control of Network Systems (accepted)},
5-
url = {https://arxiv.org/abs/2304.08571},
4+
journal={IEEE Transactions on Control of Network Systems},
5+
url = {https://doi.org/10.1109/TCNS.2024.3431408},
6+
pages={918--929},
7+
volume={12},
8+
number={1},
69
year={2024},
710
publisher={IEEE}
811
}

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "LaplacianOpt"
22
uuid = "bb20392f-64fb-4001-92e8-14b3aedd5a9e"
33
authors = ["Harsha Nagarajan"]
4-
version = "0.7.1"
4+
version = "0.7.2"
55

66
[deps]
77
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ If you find LaplacianOpt.jl useful in your work, we request you to cite the foll
4444
author={Somisetty, Neelkamal and Nagarajan, Harsha and Darbha, Swaroop},
4545
journal={IEEE Transactions on Control of Network Systems},
4646
url = {https://doi.org/10.1109/TCNS.2024.3431408},
47+
pages={918--929},
48+
volume={12},
49+
number={1},
4750
year={2024},
4851
publisher={IEEE}
4952
}

docs/src/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ If you find LaplacianOpt.jl useful in your work, we request you to cite the foll
4141
author={Somisetty, Neelkamal and Nagarajan, Harsha and Darbha, Swaroop},
4242
journal={IEEE Transactions on Control of Network Systems},
4343
url = {https://doi.org/10.1109/TCNS.2024.3431408},
44+
pages={918--929},
45+
volume={12},
46+
number={1},
4447
year={2024},
4548
publisher={IEEE}
4649
}

examples/optimizers.jl

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
#=====================================#
1+
2+
# MIP solvers (commercial, but fast) #
3+
#=====================================##=====================================#
4+
25
# MIP solvers (commercial, but fast) #
3-
#=====================================#
6+
47
function get_gurobi(; solver_log = true, time_limit = 1E5)
58
GRB_ENV = Gurobi.Env()
69
return optimizer_with_attributes(
@@ -24,10 +27,6 @@ function get_cplex(; solver_log = true)
2427
)
2528
end
2629

27-
#======================================#
28-
# MIP solvers (open-source, but slow) #
29-
#======================================#
30-
3130
function get_glpk(; solver_log = true)
3231
return JuMP.optimizer_with_attributes(GLPK.Optimizer, MOI.Silent() => !solver_log)
3332
end
@@ -41,9 +40,7 @@ function get_highs()
4140
)
4241
end
4342

44-
#========================================================#
4543
# Continuous nonlinear programming solver (open-source) #
46-
#========================================================#
4744

4845
function get_ipopt(; solver_log = true)
4946
return JuMP.optimizer_with_attributes(
@@ -54,9 +51,8 @@ function get_ipopt(; solver_log = true)
5451
)
5552
end
5653

57-
#=================================================================#
5854
# Local mixed-integer nonlinear programming solver (open-source) #
59-
#=================================================================#
55+
6056
function get_juniper()
6157
return JuMP.optimizer_with_attributes(
6258
Juniper.Optimizer,

0 commit comments

Comments
 (0)