Skip to content

Commit dacb7a9

Browse files
author
Christopher Doris
committed
separate docs from tests
1 parent 8757a30 commit dacb7a9

File tree

2 files changed

+31
-77
lines changed

2 files changed

+31
-77
lines changed

.github/workflows/docs.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Docs
2+
3+
on:
4+
push:
5+
branches: [main]
6+
tags: '*'
7+
8+
jobs:
9+
docs:
10+
name: Documentation
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: julia-actions/setup-julia@v1
15+
with:
16+
version: '1'
17+
- run: |
18+
julia --project=docs -e '
19+
using Pkg
20+
Pkg.develop(PackageSpec(path=pwd()))
21+
Pkg.instantiate()'
22+
- run: |
23+
julia --project=docs -e '
24+
using Documenter: doctest
25+
using PythonCall
26+
doctest(PythonCall)'
27+
- run: julia --project=docs docs/make.jl
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

.github/workflows/tests.yml

+1-77
Original file line numberDiff line numberDiff line change
@@ -8,60 +8,7 @@ on:
88
tags: '*'
99

1010
jobs:
11-
# test:
12-
# name: Test (${{ matrix.os }}-${{ matrix.arch }}, jl-${{ matrix.jlversion }}, py-${{ matrix.pyversion }})
13-
# runs-on: ${{ matrix.os }}
14-
# strategy:
15-
# fail-fast: false
16-
# matrix:
17-
# arch: [x64, x86]
18-
# os: [ubuntu-latest, windows-latest, macos-latest]
19-
# jlversion: ['1']
20-
# pyversion: ['3.x']
21-
# exclude:
22-
# - os: macos-latest
23-
# arch: x86
24-
# - os: ubuntu-latest
25-
# arch: x86
26-
# - os: windows-latest
27-
# arch: x86
28-
# jlversion: '1.0'
29-
# include:
30-
# - arch: x64
31-
# os: ubuntu-latest
32-
# jlversion: '1'
33-
# pyversion: '3.5'
34-
# steps:
35-
# - uses: actions/checkout@v2
36-
# - uses: actions/setup-python@v2
37-
# with:
38-
# python-version: ${{ matrix.pyversion }}
39-
# architecture: ${{ matrix.arch }}
40-
# - uses: julia-actions/setup-julia@v1
41-
# with:
42-
# version: ${{ matrix.jlversion }}
43-
# arch: ${{ matrix.arch }}
44-
# - uses: actions/cache@v1
45-
# env:
46-
# cache-name: cache-artifacts
47-
# with:
48-
# path: ~/.julia/artifacts
49-
# key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
50-
# restore-keys: |
51-
# ${{ runner.os }}-test-${{ env.cache-name }}-
52-
# ${{ runner.os }}-test-
53-
# ${{ runner.os }}-
54-
# - uses: julia-actions/julia-buildpkg@v1
55-
# - uses: julia-actions/julia-runtest@v1
56-
# env:
57-
# JULIA_DEBUG: PythonCall
58-
# JULIA_PYTHONCALL_EXE: python3
59-
# - uses: julia-actions/julia-processcoverage@v1
60-
# - uses: codecov/codecov-action@v1
61-
# with:
62-
# file: lcov.info
63-
64-
test:
11+
tests:
6512
name: Test (${{ matrix.os }}-${{ matrix.arch }}, julia ${{ matrix.jlversion }})
6613
runs-on: ${{ matrix.os }}
6714
strategy:
@@ -94,26 +41,3 @@ jobs:
9441
- uses: codecov/codecov-action@v1
9542
with:
9643
file: lcov.info
97-
98-
docs:
99-
name: Documentation
100-
runs-on: ubuntu-latest
101-
steps:
102-
- uses: actions/checkout@v2
103-
- uses: julia-actions/setup-julia@v1
104-
with:
105-
version: '1'
106-
- run: |
107-
julia --project=docs -e '
108-
using Pkg
109-
Pkg.develop(PackageSpec(path=pwd()))
110-
Pkg.instantiate()'
111-
- run: |
112-
julia --project=docs -e '
113-
using Documenter: doctest
114-
using PythonCall
115-
doctest(PythonCall)'
116-
- run: julia --project=docs docs/make.jl
117-
env:
118-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
119-
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

0 commit comments

Comments
 (0)