Skip to content

Commit

Permalink
Draft Github CI integrations
Browse files Browse the repository at this point in the history
Related #483
  • Loading branch information
Feras A. Saad committed Oct 31, 2022
1 parent bcf3504 commit 22f807a
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 20 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ContinuousIntegration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Adapted from
# https://github.com/marketplace/actions/run-julia-package-tests

name: ContinuousIntegration

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
julia-version: ['1.3', 'nightly']
julia-arch: [x86]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
arch: ${{ matrix.julia-arch }}
show-versioninfo: true
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
with:
annotate: true
29 changes: 29 additions & 0 deletions .github/workflows/Documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Adapted from
# https://juliadocs.github.io/Documenter.jl/stable/man/hosting/#GitHub-Actions

name: Documentation

on:
push:
branches:
- master
tags: '*'
pull_request:

jobs:
build:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
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 documentation
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
run: julia --project=docs/ docs/make.jl
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

0 comments on commit 22f807a

Please sign in to comment.