Skip to content

Commit d152ffb

Browse files
authored
Merge pull request #103 from Arkoniak/travis_to_actions
fixed CI
2 parents 1d5d0c6 + 4ca86c3 commit d152ffb

File tree

5 files changed

+89
-45
lines changed

5 files changed

+89
-45
lines changed

.github/workflows/CI.yml

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
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.0'
14+
- '1'
15+
- 'nightly'
16+
os:
17+
- ubuntu-latest
18+
- macOS-latest
19+
- windows-latest
20+
arch:
21+
- x64
22+
steps:
23+
- uses: actions/checkout@v2
24+
- uses: julia-actions/setup-julia@v1
25+
with:
26+
version: ${{ matrix.version }}
27+
arch: ${{ matrix.arch }}
28+
- uses: actions/cache@v1
29+
env:
30+
cache-name: cache-artifacts
31+
with:
32+
path: ~/.julia/artifacts
33+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
34+
restore-keys: |
35+
${{ runner.os }}-test-${{ env.cache-name }}-
36+
${{ runner.os }}-test-
37+
${{ runner.os }}-
38+
- uses: julia-actions/julia-buildpkg@v1
39+
- uses: julia-actions/julia-runtest@v1
40+
- uses: julia-actions/julia-processcoverage@v1
41+
- uses: codecov/codecov-action@v1
42+
env:
43+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
44+
with:
45+
file: lcov.info
46+
docs:
47+
name: Documentation
48+
runs-on: ubuntu-latest
49+
steps:
50+
- uses: actions/checkout@v2
51+
- uses: julia-actions/setup-julia@v1
52+
with:
53+
version: '1.3'
54+
- run: |
55+
julia --project=docs -e '
56+
using Pkg
57+
Pkg.develop(PackageSpec(path=pwd()))
58+
Pkg.add(PackageSpec(url="https://github.com/Arkoniak/Documenter.jl", rev="repo_url"));
59+
Pkg.instantiate()'
60+
- run: |
61+
julia --project=docs -e '
62+
using Documenter: DocMeta, doctest
63+
using ParallelKMeans
64+
DocMeta.setdocmeta!(ParallelKMeans, :DocTestSetup, :(using ParallelKMeans); recursive=true)
65+
doctest(ParallelKMeans)'
66+
- run: julia --project=docs docs/make.jl
67+
env:
68+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
69+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

.github/workflows/CompatHelper.yml

+5-11
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ name: CompatHelper
22

33
on:
44
schedule:
5-
- cron: '00 00 * * *'
5+
- cron: '0 0 * * *'
6+
workflow_dispatch:
67
push:
78
branches:
89
- actions/trigger/CompatHelper
9-
1010
jobs:
1111
CompatHelper:
1212
runs-on: ubuntu-latest
@@ -15,15 +15,9 @@ jobs:
1515
with:
1616
version: 1.4
1717
- name: Pkg.add("CompatHelper")
18-
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
18+
run: julia -e 'using Pkg; Pkg.add("CompatHelper"); Pkg.resolve()'
1919
- name: CompatHelper.main()
2020
env:
2121
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22-
run: >-
23-
julia -e '
24-
using CompatHelper;
25-
CompatHelper.main() do;
26-
run(`julia --project=test/environments/main -e "import Pkg; Pkg.instantiate(); Pkg.update()"`);
27-
run(`julia --project=docs -e "import Pkg; Pkg.instantiate(); Pkg.update()"`);
28-
end
29-
'
22+
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
23+
run: julia -e 'using CompatHelper; CompatHelper.main() '

.github/workflows/TagBot.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
name: TagBot
22
on:
3-
schedule:
4-
- cron: 0 * * * *
3+
issue_comment:
4+
types:
5+
- created
6+
workflow_dispatch:
57
jobs:
68
TagBot:
9+
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
710
runs-on: ubuntu-latest
811
steps:
912
- uses: JuliaRegistries/TagBot@v1
1013
with:
1114
token: ${{ secrets.GITHUB_TOKEN }}
15+
ssh: ${{ secrets.DOCUMENTER_KEY }}

.travis.yml

-27
This file was deleted.

docs/make.jl

+9-5
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,18 @@ using Documenter, ParallelKMeans
22

33
makedocs(;
44
modules=[ParallelKMeans],
5-
format=Documenter.HTML(),
5+
authors="Bernard Brenyah & Andrey Oskin",
6+
repo="https://github.com/PyDataBlog/ParallelKMeans.jl/blob/{commit}{path}#L{line}",
7+
sitename="ParallelKMeans.jl",
8+
format=Documenter.HTML(
9+
prettyurls=get(ENV, "CI", "false") == "true",
10+
canonical="https://PyDataBlog.github.io/ParallelKMeans.jl",
11+
siteurl="https://github.com/PyDataBlog/ParallelKMeans.jl",
12+
assets=String[],
13+
),
614
pages=[
715
"Home" => "index.md",
816
],
9-
repo="https://github.com/PyDataBlog/ParallelKMeans.jl/blob/{commit}{path}#L{line}",
10-
sitename="ParallelKMeans.jl",
11-
authors="Bernard Brenyah & Andrey Oskin",
12-
assets=String[],
1317
)
1418

1519
deploydocs(;

0 commit comments

Comments
 (0)