Skip to content

Commit e0b1164

Browse files
Create ci.yml
1 parent ad69d06 commit e0b1164

File tree

1 file changed

+66
-0
lines changed

1 file changed

+66
-0
lines changed

.github/ci.yml

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: CI
2+
on:
3+
- push
4+
- pull_request
5+
jobs:
6+
#test:
7+
# name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
8+
# runs-on: ${{ matrix.os }}
9+
# strategy:
10+
# fail-fast: false
11+
# matrix:
12+
# version:
13+
# - '1.5'
14+
# - 'nightly'
15+
# os:
16+
# - ubuntu-latest
17+
# - macOS-latest
18+
# - windows-latest
19+
# arch:
20+
# - x64
21+
# steps:
22+
# - uses: actions/checkout@v2
23+
# - uses: julia-actions/setup-julia@v1
24+
# with:
25+
# version: ${{ matrix.version }}
26+
# arch: ${{ matrix.arch }}
27+
# - uses: actions/cache@v1
28+
# env:
29+
# cache-name: cache-artifacts
30+
# with:
31+
# path: ~/.julia/artifacts
32+
# key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
33+
# restore-keys: |
34+
# ${{ runner.os }}-test-${{ env.cache-name }}-
35+
# ${{ runner.os }}-test-
36+
# ${{ runner.os }}-
37+
# - uses: julia-actions/julia-buildpkg@latest
38+
# - uses: julia-actions/julia-runtest@latest
39+
# - uses: julia-actions/julia-processcoverage@v1
40+
# - uses: codecov/codecov-action@v1
41+
# with:
42+
# file: lcov.info
43+
docs:
44+
name: Documentation
45+
runs-on: ubuntu-latest
46+
steps:
47+
- uses: actions/checkout@v2
48+
- uses: julia-actions/setup-julia@v1
49+
with:
50+
version: '1'
51+
- run: |
52+
julia --project=docs -e '
53+
import Pkg; Pkg.add("Documenter")
54+
using Pkg
55+
Pkg.develop(PackageSpec(path=pwd()))
56+
Pkg.instantiate()'
57+
- run: |
58+
julia --project=docs -e '
59+
import Pkg; Pkg.add("Documenter")
60+
using Documenter: doctest
61+
using BosonSampling
62+
doctest(BosonSampling)'
63+
- run: julia --project=docs docs/make.jl
64+
env:
65+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

0 commit comments

Comments
 (0)