Skip to content

Commit

Permalink
Merge pull request #15 from SciML/at/use-reusable-workflows
Browse files Browse the repository at this point in the history
ci: standardise workflows using SciML's reusable workflows
  • Loading branch information
kaandocal authored May 12, 2024
2 parents 33fce0e + 3478e23 commit 9e3c4e8
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 54 deletions.
23 changes: 9 additions & 14 deletions .github/workflows/Documentation.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Documentation
name: "Documentation"

on:
push:
Expand All @@ -7,17 +7,12 @@ on:
tags: '*'
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref_name != github.event.repository.default_branch || github.ref != 'refs/tags/v*' }}

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
with:
version: '1.6'
- 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
run: julia --project=docs/ docs/make.jl
build-and-deploy-docs:
name: "Documentation"
uses: "SciML/.github/.github/workflows/documentation.yml@v1"
secrets: "inherit"
27 changes: 27 additions & 0 deletions .github/workflows/Tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "Tests"

on:
push:
branches:
- "main"
tags:
- "*"
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref_name != github.event.repository.default_branch || github.ref != 'refs/tags/v*' }}

jobs:
tests:
name: "Tests"
strategy:
fail-fast: false
matrix:
version:
- "1"
- "1.6"
uses: "SciML/.github/.github/workflows/tests.yml@v1"
with:
julia-version: "${{ matrix.version }}"
secrets: "inherit"
40 changes: 0 additions & 40 deletions .github/workflows/ci.yml

This file was deleted.

0 comments on commit 9e3c4e8

Please sign in to comment.