From 0e6a05cbb8ba31fa88bf627bec2f578088710353 Mon Sep 17 00:00:00 2001 From: Omar Ashour Date: Tue, 23 Jan 2024 21:16:07 -0800 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 34 ++++++++++------------------------ 1 file changed, 10 insertions(+), 24 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 77ad48f..f1f99ac 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,9 @@ name: CI on: - - push - - pull_request + push: + branches: [main, master] + tags: ["*"] + pull_request: jobs: test: name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} @@ -11,16 +13,12 @@ jobs: matrix: version: - '1.5' - - 'nightly' os: - ubuntu-latest - - macOS-latest - - windows-latest arch: - x64 - exclude: - - os: macOS-latest - arch: x86 + - x86 + steps: - uses: actions/checkout@v2 - uses: julia-actions/setup-julia@v1 @@ -40,28 +38,16 @@ jobs: - uses: julia-actions/julia-buildpkg@v1 - uses: julia-actions/julia-runtest@v1 - uses: julia-actions/julia-processcoverage@v1 - - uses: codecov/codecov-action@v1 + - uses: codecov/codecov-action@v2 with: - file: lcov.info + files: 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 NonlinearSchrodinger - doctest(NonlinearSchrodinger)' - - run: julia --project=docs docs/make.jl + - uses: julia-actions/julia-buildpkg@latest + - uses: julia-actions/julia-docdeploy@latest env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}