Skip to content

Commit d53629d

Browse files
committed
revert CI change
1 parent ac41787 commit d53629d

File tree

1 file changed

+53
-64
lines changed

1 file changed

+53
-64
lines changed

.github/workflows/CI.yml

Lines changed: 53 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,57 @@
11
name: CI
2-
on: [push]
2+
on:
3+
- push
4+
- pull_request
5+
concurrency:
6+
# Skip intermediate builds: always.
7+
# Cancel intermediate builds: only if it is a pull request build.
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
310
jobs:
4-
build:
5-
runs-on: windows-latest
11+
test:
12+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
version:
18+
- '1.9'
19+
- 'pre'
20+
os:
21+
- ubuntu-latest
22+
- macOS-latest
23+
- windows-latest
624
steps:
7-
- uses: actions/checkout@v4
8-
- name: Setup tmate session
9-
uses: mxschmitt/action-tmate@v3
25+
- uses: actions/checkout@v3
26+
- uses: julia-actions/setup-julia@v1
27+
with:
28+
version: ${{ matrix.version }}
29+
- uses: julia-actions/cache@v1
30+
- uses: julia-actions/julia-buildpkg@v1
31+
- uses: julia-actions/julia-runtest@v1
32+
docs:
33+
name: Documentation
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@v3
37+
- uses: julia-actions/setup-julia@v1
38+
with:
39+
version: '1'
40+
- run: |
41+
julia --project=docs -e '
42+
import Pkg; Pkg.add("Documenter")
43+
using Pkg
44+
Pkg.develop(PackageSpec(path=pwd()))
45+
Pkg.instantiate()'
46+
- run: |
47+
julia --project=docs -e '
48+
import Pkg; Pkg.add("Documenter")
49+
using Documenter: doctest
50+
using Packmol
51+
doctest(Packmol)'
52+
- run: julia --project=docs docs/make.jl
53+
env:
54+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
56+
1057

11-
#name: CI
12-
#on:
13-
# - push
14-
# - pull_request
15-
#concurrency:
16-
# # Skip intermediate builds: always.
17-
# # Cancel intermediate builds: only if it is a pull request build.
18-
# group: ${{ github.workflow }}-${{ github.ref }}
19-
# cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
20-
#jobs:
21-
# test:
22-
# name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
23-
# runs-on: ${{ matrix.os }}
24-
# strategy:
25-
# fail-fast: false
26-
# matrix:
27-
# version:
28-
# - '1.9'
29-
# - 'pre'
30-
# os:
31-
# - ubuntu-latest
32-
# - macOS-latest
33-
# - windows-latest
34-
# steps:
35-
# - uses: actions/checkout@v3
36-
# - uses: julia-actions/setup-julia@v1
37-
# with:
38-
# version: ${{ matrix.version }}
39-
# - uses: julia-actions/cache@v1
40-
# - uses: julia-actions/julia-buildpkg@v1
41-
# - uses: julia-actions/julia-runtest@v1
42-
# docs:
43-
# name: Documentation
44-
# runs-on: ubuntu-latest
45-
# steps:
46-
# - uses: actions/checkout@v3
47-
# - uses: julia-actions/setup-julia@v1
48-
# with:
49-
# version: '1'
50-
# - run: |
51-
# julia --project=docs -e '
52-
# import Pkg; Pkg.add("Documenter")
53-
# using Pkg
54-
# Pkg.develop(PackageSpec(path=pwd()))
55-
# Pkg.instantiate()'
56-
# - run: |
57-
# julia --project=docs -e '
58-
# import Pkg; Pkg.add("Documenter")
59-
# using Documenter: doctest
60-
# using Packmol
61-
# doctest(Packmol)'
62-
# - run: julia --project=docs docs/make.jl
63-
# env:
64-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
65-
# DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
66-
#
67-
#
68-
#

0 commit comments

Comments
 (0)