From 731de99c1b4837266a985ab6450b772aa2c73a8e Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Thu, 28 Sep 2023 17:55:23 -0400 Subject: [PATCH 1/4] move to organization controlled CI/CD --- .github/workflows/julia_ci.yml | 50 ++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/julia_ci.yml diff --git a/.github/workflows/julia_ci.yml b/.github/workflows/julia_ci.yml new file mode 100644 index 00000000..0052545d --- /dev/null +++ b/.github/workflows/julia_ci.yml @@ -0,0 +1,50 @@ +name: Julia CI/CD + +on: + schedule: + - cron: 0 0 * * * + push: + branches: ["master"] + tags: ["*"] + pull_request: + workflow_dispatch: + inputs: + action: + description: "Action" + required: true + default: "test" + type: choice + options: + - test + - release + version: + description: "Tag and release version:" + required: false + +permissions: + actions: read + checks: read + contents: write + deployments: read + discussions: read + issues: read + packages: read + pages: read + pull-requests: write + repository-projects: read + security-events: read + statuses: read + +jobs: + CI: + if: github.event_name == 'pull_request' || github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && inputs.action == 'test') + uses: AlgebraicJulia/.github/.github/workflows/julia_ci.yml@main + secrets: inherit + CompatHelper: + if: github.event_name == 'schedule' + uses: AlgebraicJulia/.github/.github/workflows/julia_compat.yml@main + secrets: inherit + Release: + if: github.event_name == 'workflow_dispatch' && inputs.action == 'release' && inputs.version != '' + uses: AlgebraicJulia/.github/.github/workflows/julia_release.yml@main + secrets: inherit From 9597e945c62add1250f9a0b88c710a1bb3df6777 Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Thu, 28 Sep 2023 17:56:57 -0400 Subject: [PATCH 2/4] remove old ci/cd --- .github/workflows/CompatHelper.yml | 16 ---------------- .github/workflows/tests.yml | 22 ---------------------- 2 files changed, 38 deletions(-) delete mode 100644 .github/workflows/CompatHelper.yml delete mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/CompatHelper.yml b/.github/workflows/CompatHelper.yml deleted file mode 100644 index d48734a3..00000000 --- a/.github/workflows/CompatHelper.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: CompatHelper -on: - schedule: - - cron: 0 0 1 * * - workflow_dispatch: -jobs: - CompatHelper: - runs-on: ubuntu-latest - steps: - - name: Pkg.add("CompatHelper") - run: julia -e 'using Pkg; Pkg.add("CompatHelper")' - - name: CompatHelper.main() - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }} - run: julia -e 'using CompatHelper; CompatHelper.main()' diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml deleted file mode 100644 index 1b874699..00000000 --- a/.github/workflows/tests.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Tests - -on: [push, pull_request] - -jobs: - test: - runs-on: ${{ matrix.os }} - strategy: - matrix: - julia-version: ['1.9'] - os: [ubuntu-latest, macOS-latest] - steps: - - uses: actions/checkout@v2 - - uses: julia-actions/setup-julia@latest - with: - version: ${{ matrix.julia-version }} - - uses: julia-actions/cache@v1 - - uses: julia-actions/julia-buildpkg@v1 - - uses: julia-actions/julia-runtest@v1 -# TODO: Needs to be set up on codecov.io -# - uses: julia-actions/julia-processcoverage@v1 -# - uses: codecov/codecov-action@v3 From 781a54ac89f3919011d1c15da93059d38df969cd Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Fri, 29 Sep 2023 07:06:34 -0400 Subject: [PATCH 3/4] add missing docs dependency --- docs/Project.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/Project.toml b/docs/Project.toml index cc5fcc18..7dca70e5 100644 --- a/docs/Project.toml +++ b/docs/Project.toml @@ -3,3 +3,4 @@ Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" JSON3 = "0f8b85d8-7281-11e9-16c2-39a750bddbf1" Literate = "98b081ad-f1c9-55d3-8b20-4c87d4299306" StockFlow = "58c4a0e8-2944-4d18-9fa2-e17726aee9e5" +TikzPictures = "37f6aa50-8035-52d0-81c2-5a1d08754b2d" From 38615e3985f418947569e34d9d7eb29f03f7fcde Mon Sep 17 00:00:00 2001 From: Thomas Purdy Date: Fri, 29 Sep 2023 10:04:49 -0600 Subject: [PATCH 4/4] Added Catlab as dependency to docs Project.toml --- docs/Project.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/Project.toml b/docs/Project.toml index 7dca70e5..81df4b8b 100644 --- a/docs/Project.toml +++ b/docs/Project.toml @@ -1,4 +1,5 @@ [deps] +Catlab = "134e5e36-593f-5add-ad60-77f754baafbe" Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" JSON3 = "0f8b85d8-7281-11e9-16c2-39a750bddbf1" Literate = "98b081ad-f1c9-55d3-8b20-4c87d4299306"