Skip to content

Commit 4bf152d

Browse files
authored
Merge pull request #484 from probcomp/20221031-fsaad-github-actions
Draft Github CI integrations
2 parents b959223 + 349fb6c commit 4bf152d

File tree

5 files changed

+61
-22
lines changed

5 files changed

+61
-22
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Adapted from
2+
# https://github.com/marketplace/actions/run-julia-package-tests
3+
4+
name: ContinuousIntegration
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
pull_request:
10+
branches: [ master ]
11+
12+
jobs:
13+
ContinuousIntegration:
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
matrix:
17+
julia-version: ['1', '1.3', '1.6', 'nightly']
18+
julia-arch: [x64]
19+
os: [ubuntu-latest]
20+
steps:
21+
- uses: actions/checkout@v2
22+
- uses: julia-actions/setup-julia@v1
23+
with:
24+
version: ${{ matrix.julia-version }}
25+
arch: ${{ matrix.julia-arch }}
26+
show-versioninfo: true
27+
- uses: julia-actions/julia-buildpkg@v1
28+
- uses: julia-actions/julia-runtest@v1
29+
with:
30+
annotate: true

.github/workflows/Documentation.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Adapted from
2+
# https://juliadocs.github.io/Documenter.jl/stable/man/hosting/#GitHub-Actions
3+
4+
name: Documentation
5+
6+
on:
7+
push:
8+
branches:
9+
- master
10+
tags: '*'
11+
pull_request:
12+
13+
jobs:
14+
Documentation:
15+
permissions:
16+
contents: write
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v2
20+
- uses: julia-actions/setup-julia@v1
21+
with:
22+
version: '1.6'
23+
- name: Install dependencies
24+
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
25+
- name: Build and deploy documentation
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
29+
run: julia --project=docs/ docs/make.jl

.travis.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Gen.jl
22

3-
[![Build Status](https://travis-ci.com/probcomp/Gen.jl.svg?branch=master)](https://travis-ci.com/probcomp/Gen.jl)
3+
[![Build Status](https://github.com/probcomp/Gen/workflows/ContinuousIntegration/badge.svg)](https://github.com/probcomp/Gen/actions)
44
[![](https://img.shields.io/badge/docs-stable-blue.svg)](https://probcomp.github.io/Gen.jl/stable)
55
[![](https://img.shields.io/badge/docs-dev-blue.svg)](https://probcomp.github.io/Gen.jl/dev)
66

WEBSITE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The website is generated from the source files that are at the head commit of th
44

55
To edit the website, check out the `gh-pages` branch, and commit and push changes.
66

7-
Automatically-generated Gen documentation is pushed to the `gh-pages` branch whenever a commit is made to the `master` branch of the Gen repository using a combination of Travis and Documenter.jl, which are configured in the files `.travis.yml` and `docs/make.jl` in the `master` branch.
7+
Automatically-generated Gen documentation is pushed to the `gh-pages` branch whenever a commit is made to the `master` branch of the Gen repository using a combination of Github Actions and Documenter.jl, which are configured in the files `.github/workflows/Documentation.yml` and `docs/make.jl` in the `master` branch.
88
The automatically-managed files and directories are:
99

1010
- `dev/` (documentation for the version of Gen on the head of `master` branch)

0 commit comments

Comments
 (0)