Skip to content

Commit

Permalink
Attempt #1 to get CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Seelengrab committed Feb 20, 2024
1 parent 965e151 commit 6c4361f
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 12 deletions.
49 changes: 38 additions & 11 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
name: CI

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
pull_request:
branches:
- main
push:
branches:
- main
tags: ['*']
pull_request:
workflow_dispatch:

concurrency:
# Skip intermediate builds: always.
# Cancel intermediate builds: only if it is a pull request build.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
- 'feat/**'
tags: '*'
schedule:
- cron: '0 2 * * 1'

permissions:
actions: write
Expand All @@ -26,8 +28,9 @@ jobs:
fail-fast: false
matrix:
version:
- '1.11'
- '1.6'
- '1.8'
- '1.9'
- '1'
- 'nightly'
os:
- ubuntu-latest
Expand All @@ -47,3 +50,27 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: lcov.info
docs:
name: Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- 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 Documenter.DocMeta: setdocmeta!
using FieldFlags
setdocmeta!(FieldFlags, :DocTestSetup, :(using FieldFlags); recursive=true)
doctest(FieldFlags)'
- run: julia --project=docs docs/make.jl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
49 changes: 49 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: CI

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
pull_request:
branches:
- main
push:
branches:
- main
- 'feat/**'
tags: '*'
schedule:
- cron: '0 2 * * 1'

permissions:
actions: write
contents: read

jobs:
test:
name: Julia nightly - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- 'nightly'
os:
- ubuntu-latest
arch:
- x64
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/cache@v1
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: lcov.info
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Supposition.jl

[![Build Status](https://github.com/Sukera/Supposition.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/Sukera/Supposition.jl/actions/workflows/CI.yml?query=branch%3Amain)
[![CI Stable](https://github.com/Sukera/Supposition.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/Sukera/Supposition.jl/actions/workflows/CI.yml?query=branch%3Amain)
[![CI Nightly](https://github.com/Sukera/Supposition.jl/actions/workflows/nightly.yml/badge.svg?branch=main)](https://github.com/Sukera/Supposition.jl/actions/workflows/nightly.yml)
[![docs-stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://seelengrab.github.io/Supposition.jl/stable)
[![docs-dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://seelengrab.github.io/Supposition.jl/dev)
[![Aqua](https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg)](https://github.com/JuliaTesting/Aqua.jl)
Expand Down

0 comments on commit 6c4361f

Please sign in to comment.