diff --git a/.github/workflows/CompatHelper.yml b/.github/workflows/CompatHelper.yml
deleted file mode 100644
index fc333e71..00000000
--- a/.github/workflows/CompatHelper.yml
+++ /dev/null
@@ -1,17 +0,0 @@
-name: CompatHelper
-on:
- schedule:
- - cron: 0 0 * * *
- workflow_dispatch:
-jobs:
- CompatHelper:
- runs-on: ubuntu-latest
- steps:
- - name: Install CompatHelper
- run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
- - name: Run CompatHelper
- run: julia -e 'using CompatHelper; CompatHelper.main()'
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- COMPATHELPER_PRIV: ${{ secrets.COMPATHELPER_PRIV }} # Deploy key to trigger other actions
-
diff --git a/.github/workflows/Documentation.yml b/.github/workflows/Documentation.yml
deleted file mode 100644
index 9dab43ed..00000000
--- a/.github/workflows/Documentation.yml
+++ /dev/null
@@ -1,56 +0,0 @@
-name: Documentation
-
-on:
- # manual trigger
- workflow_dispatch:
- # trigger from an other action
- repository_dispatch:
- types: [trigger-docu]
-
- pull_request:
- push:
- branches:
- - main
- paths:
- - 'docs/**'
- - 'README.md'
- - '.github/workflows/Documentation.yml'
- tags:
- - '*'
-
-jobs:
- build:
- runs-on: ubuntu-latest
- steps:
- - name: "Check out repository"
- uses: actions/checkout@v3
- with:
- ref: main
-
- - name: "Set up Julia"
- uses: julia-actions/setup-julia@v1
- with:
- version: '1' # 1.6
- arch: x64
-
- - name: "Copy examples, readme"
- env:
- WORK_TREE: './docs/src/examples'
- SRC_BRANCH: 'origin/examples'
- SRC_FOLDER_PATH: 'examples/src'
- # copy the examples from the examples branch (.md, .svg) and copy the readme in the docs folder
- run: |
- git fetch
- git --work-tree=$WORK_TREE/.. checkout $SRC_BRANCH -- $SRC_FOLDER_PATH/*.md $SRC_FOLDER_PATH/*.svg $SRC_FOLDER_PATH/*.gif
- mv $WORK_TREE/src/* $WORK_TREE
- rm -r $WORK_TREE/src
- cp ./README.md ./docs/src/index.md
-
- - name: "Install dependencies"
- run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
-
- - name: "Build and deploy"
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
- DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key
- run: julia --project=docs/ docs/make.jl
diff --git a/.github/workflows/Eval.yml b/.github/workflows/Eval.yml
deleted file mode 100644
index e569102a..00000000
--- a/.github/workflows/Eval.yml
+++ /dev/null
@@ -1,59 +0,0 @@
-name: Run PkgEval
-
-on:
- workflow_dispatch:
- pull_request:
- push:
- branches:
- - main
-
-jobs:
- test:
- runs-on: ubuntu-latest
- strategy:
- # Don't cancel in-progress jobs if any matrix job fails
- fail-fast: false
- matrix:
- julia-version: ['1'] # "1" automatically expands to the latest stable 1.x release of Julia
- julia-arch: [x64]
-
- steps:
- # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- - name: Check out repository
- uses: actions/checkout@v2
-
- # Set up Julia
- - name: "Set up Julia"
- uses: julia-actions/setup-julia@v1
- with:
- version: ${{ matrix.julia-version }}
- arch: ${{ matrix.julia-arch }}
- id: version
-
- # Set up cache
- - name: "Set up cache"
- uses: actions/cache@v2
- env:
- cache-name: cache-artifacts
- with:
- path: ~/.julia/artifacts
- key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
- restore-keys: |
- ${{ runner.os }}-test-${{ env.cache-name }}-
- ${{ runner.os }}-test-
- ${{ runner.os }}-
-
- # Build package
- - name: "Build package"
- uses: julia-actions/julia-buildpkg@v1
-
- # Run PkgEval
- - name: "Run PkgEval"
- run: |
- git clone https://github.com/JuliaCI/PkgEval.jl.git
- julia --project=. -e '
- import Pkg;
- Pkg.instantiate();
- Pkg.add("Test");
- Pkg.add(path="./PkgEval.jl")'
- julia --project=. ./test/eval.jl
diff --git a/.github/workflows/Example.yml b/.github/workflows/Example.yml
deleted file mode 100644
index 372efc9f..00000000
--- a/.github/workflows/Example.yml
+++ /dev/null
@@ -1,115 +0,0 @@
-name: Examples
-
-on:
- workflow_dispatch:
- pull_request:
- push:
- branches:
- - main
- paths:
- - 'src/**'
- - 'examples/src/**'
- - '.github/workflows/Example.yml'
- - 'Project.toml'
-
-jobs:
- sync-files:
- runs-on: ${{ matrix.os }}
- strategy:
- fail-fast: false
- matrix:
- os: [windows-latest] # , ubuntu-latest]
- file-name: [growing_horizon_ME, modelica_conference_2021, simple_hybrid_CS, simple_hybrid_ME, mdpi_2022, juliacon_2023]
- julia-version: ['1.8']
- julia-arch: [x64]
- experimental: [false]
-
- steps:
- - name: "Check out repository"
- uses: actions/checkout@v3
-
- - name: "Set up Julia"
- uses: julia-actions/setup-julia@v1
- with:
- version: ${{ matrix.julia-version }}
- arch: ${{ matrix.julia-arch }}
-
- - name: "Install dependencies"
- run: julia --project=examples/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
-
- - name: "Install packages"
- run: pip install jupyter nbconvert
-
- - name: "Execute and synchronize all files"
- env:
- FILE: examples/src/${{ matrix.file-name }}.ipynb
- run: |
- jupyter nbconvert --ExecutePreprocessor.kernel_name="julia-1.8" --to notebook --inplace --execute ${{ env.FILE }}
- jupyter nbconvert --to script ${{ env.FILE }}
- jupyter nbconvert --to markdown ${{ env.FILE }}
-
- - name: "Fix GIFs"
- run: |
- echo "starting gif fixing"
- mv examples/src/gif_*.gif examples/src/${{ matrix.file-name }}_files
- $env:Path += ";C:\Program Files\Git\usr\bin"
- awk '{if($0~//) {sub(//,\"![gif](${{ matrix.file-name }}_files\/gif_\"++i\".gif)\")}}1' examples/src/${{ matrix.file-name }}.md > examples/src/tmp_${{ matrix.file-name }}.md
- mv -Force examples/src/tmp_${{ matrix.file-name }}.md examples/src/${{ matrix.file-name }}.md
- echo "gifs should be fixed"
-
- - name: Archive examples artifacts
- if: success() && matrix.os == 'windows-latest'
- uses: actions/upload-artifact@v3
- with:
- name: examples
- path: examples/src/${{ matrix.file-name }}*
-
- auto-commit:
- needs: sync-files
- if: github.event_name != 'pull_request'
- runs-on: ubuntu-latest
- steps:
- - name: Check out repository
- uses: actions/checkout@v3
-
- - name: Download examples
- uses: actions/download-artifact@v3
- with:
- name: examples
- path: examples/src/
-
- - name: auto-commit
- env:
- CI_COMMIT_MESSAGE: Jupyter nbconvert synch - modified, paired .ipynb files
- CI_COMMIT_AUTHOR: github-actions[bot]
- EXAMPLES_PATH: examples/src
- # Fetch all and clear the stash list. Include all files from the examples/src folder to the stash and switch the branch.
- # Reset the branch and remove all current files in the examples/src folder.
- # Checkout the last stash to restore the new notebooks and apply the stash index to restore all other new files in the folder.
- run: |
- git fetch --all
- git stash clear
- git stash --include-untracked -- ${{ env.EXAMPLES_PATH }}
- git switch examples
- git reset --hard origin/examples
- rm -rf ${{ env.EXAMPLES_PATH }}
- git checkout stash -f -- ${{ env.EXAMPLES_PATH }}
- git stash apply --index
- git stash drop
- git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
- git config --global user.email "${{ env.CI_COMMIT_AUTHOR }}@users.noreply.github.com"
- git config --global core.autocrlf false
- git add ${{ env.EXAMPLES_PATH }}
- git commit -m "${{ env.CI_COMMIT_MESSAGE }}"
- git push origin examples
-
- call-docu:
- needs: auto-commit
- if: github.event_name != 'pull_request'
- runs-on: ubuntu-latest
- steps:
- # Trigger an repoisitory dispath event
- - name: Repository Dispatch
- uses: peter-evans/repository-dispatch@v2
- with:
- event-type: trigger-docu
diff --git a/.github/workflows/TagBot.yml b/.github/workflows/TagBot.yml
deleted file mode 100644
index f49313b6..00000000
--- a/.github/workflows/TagBot.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-name: TagBot
-on:
- issue_comment:
- types:
- - created
- workflow_dispatch:
-jobs:
- TagBot:
- if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
- runs-on: ubuntu-latest
- steps:
- - uses: JuliaRegistries/TagBot@v1
- with:
- token: ${{ secrets.GITHUB_TOKEN }}
- ssh: ${{ secrets.DOCUMENTER_KEY }}
diff --git a/.github/workflows/TestLTS.yml b/.github/workflows/TestLTS.yml
deleted file mode 100644
index b5dbb134..00000000
--- a/.github/workflows/TestLTS.yml
+++ /dev/null
@@ -1,67 +0,0 @@
-name: Test v1.6 (LTS)
-
-on:
- workflow_dispatch:
- pull_request:
- push:
- branches:
- - main
- paths:
- - 'src/**'
- - 'test/**'
- - '.github/workflows/Test.yml'
- - 'Project.toml'
-
-jobs:
- test:
- runs-on: ${{ matrix.os }}
- strategy:
- fail-fast: false
- matrix:
- julia-version: ['1.6']
- julia-arch: [x64]
- os: [ubuntu-latest, windows-latest]
- experimental: [false]
-
- steps:
- # Checks-out your repository
- - name: Check out repository
- uses: actions/checkout@v3
-
- # Set up Julia
- - name: "Set up Julia"
- uses: julia-actions/setup-julia@v1
- with:
- version: ${{ matrix.julia-version }}
- arch: ${{ matrix.julia-arch }}
-
- # Set up cache
- - name: "Set up cache"
- uses: actions/cache@v3
- env:
- cache-name: cache-artifacts
- with:
- path: ~/.julia/artifacts
- key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
- restore-keys: |
- ${{ runner.os }}-test-${{ env.cache-name }}-
- ${{ runner.os }}-test-
- ${{ runner.os }}-
-
- # Build package
- - name: "Build package"
- uses: julia-actions/julia-buildpkg@v1
-
- # Run the tests
- - name: "Run tests"
- uses: julia-actions/julia-runtest@v1
-
- # Preprocess Coverage
- - name: "Preprocess Coverage"
- uses: julia-actions/julia-processcoverage@v1
-
- # Run codecov
- - name: "Run CodeCov"
- uses: codecov/codecov-action@v3
- with:
- file: lcov.info
diff --git a/.github/workflows/TestLatest.yml b/.github/workflows/TestLatest.yml
deleted file mode 100644
index 723b787f..00000000
--- a/.github/workflows/TestLatest.yml
+++ /dev/null
@@ -1,67 +0,0 @@
-name: Test v1 (latest)
-
-on:
- workflow_dispatch:
- pull_request:
- push:
- branches:
- - main
- paths:
- - 'src/**'
- - 'test/**'
- - '.github/workflows/Test.yml'
- - 'Project.toml'
-
-jobs:
- test:
- runs-on: ${{ matrix.os }}
- strategy:
- fail-fast: false
- matrix:
- julia-version: ['1']
- julia-arch: [x64]
- os: [ubuntu-latest, windows-latest]
- experimental: [false]
-
- steps:
- # Checks-out your repository
- - name: Check out repository
- uses: actions/checkout@v3
-
- # Set up Julia
- - name: "Set up Julia"
- uses: julia-actions/setup-julia@v1
- with:
- version: ${{ matrix.julia-version }}
- arch: ${{ matrix.julia-arch }}
-
- # Set up cache
- - name: "Set up cache"
- uses: actions/cache@v3
- env:
- cache-name: cache-artifacts
- with:
- path: ~/.julia/artifacts
- key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
- restore-keys: |
- ${{ runner.os }}-test-${{ env.cache-name }}-
- ${{ runner.os }}-test-
- ${{ runner.os }}-
-
- # Build package
- - name: "Build package"
- uses: julia-actions/julia-buildpkg@v1
-
- # Run the tests
- - name: "Run tests"
- uses: julia-actions/julia-runtest@v1
-
- # Preprocess Coverage
- - name: "Preprocess Coverage"
- uses: julia-actions/julia-processcoverage@v1
-
- # Run codecov
- - name: "Run CodeCov"
- uses: codecov/codecov-action@v3
- with:
- file: lcov.info