From 5302c61abf4375727122c788f7e66de68f349b59 Mon Sep 17 00:00:00 2001 From: "Viral B. Shah" Date: Wed, 19 Oct 2022 23:07:02 -0400 Subject: [PATCH 1/3] github ci --- docs/Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Project.toml b/docs/Project.toml index 8fb9eee..6a99be3 100644 --- a/docs/Project.toml +++ b/docs/Project.toml @@ -3,4 +3,4 @@ Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" ZMQ = "c2297ded-f4af-51ae-bb23-16f91089e4e1" [compat] -Documenter = "~0.20" +Documenter = "0.26" From ff7c43a24e8ba1ce5769981f74b667b30800511d Mon Sep 17 00:00:00 2001 From: "Viral B. Shah" Date: Wed, 19 Oct 2022 23:08:33 -0400 Subject: [PATCH 2/3] Add ci.yml --- .github/workflows/ci.yml | 70 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..18fd6a4 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,70 @@ +name: CI +env: + JULIA_NUM_THREADS: 2 +on: + pull_request: + branches: + - master + push: + branches: + - master + tags: '*' +jobs: + test: + name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + version: + - '1' + os: + - ubuntu-latest + - macos-latest + - windows-latest + arch: + - x64 + steps: + - uses: actions/checkout@v2 + - uses: julia-actions/setup-julia@v1 + with: + version: ${{ matrix.version }} + arch: ${{ matrix.arch }} + - uses: actions/cache@v1 + 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 }}- + - uses: julia-actions/julia-buildpkg@v1 + - uses: julia-actions/julia-runtest@v1 + - uses: julia-actions/julia-processcoverage@v1 + - uses: codecov/codecov-action@v1 + with: + file: lcov.info + 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: doctest + using ZMQ + doctest(ZMQ)' + - run: julia --project=docs docs/make.jl + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} From 8451aaf3f58db7fed16c5e1ec4c9c9357db979d5 Mon Sep 17 00:00:00 2001 From: "Viral B. Shah" Date: Wed, 19 Oct 2022 23:13:56 -0400 Subject: [PATCH 3/3] Remove Documenter version --- docs/Project.toml | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/Project.toml b/docs/Project.toml index 382b46e..adb16de 100644 --- a/docs/Project.toml +++ b/docs/Project.toml @@ -1,5 +1,3 @@ [deps] Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" ZMQ = "c2297ded-f4af-51ae-bb23-16f91089e4e1" - -Documenter = "0.26"