Skip to content

Commit a5707ca

Browse files
committed
Update CI and documentation for the general registry
1 parent 881ef49 commit a5707ca

File tree

10 files changed

+61
-92
lines changed

10 files changed

+61
-92
lines changed

.github/workflows/CompatHelper.yml

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,10 @@ jobs:
88
CompatHelper:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: julia-actions/setup-julia@latest
12-
with:
13-
version: 1.3
1411
- name: Add CompatHelper
15-
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
12+
run: julia --color=yes -e 'using Pkg; Pkg.add("CompatHelper")'
1613
- name: Run CompatHelper
1714
env:
1815
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19-
run: julia -e '
20-
using CompatHelper, Pkg;
21-
my_registries = [
22-
Pkg.RegistrySpec(
23-
name = "BioJuliaRegistry",
24-
uuid = "ccbd2cc2-2954-11e9-1ccf-f3e7900901ca",
25-
url = "https://github.com/BioJulia/BioJuliaRegistry.git"
26-
),
27-
Pkg.RegistrySpec(
28-
name = "General",
29-
uuid = "23338594-aafe-5451-b93e-139f81909106",
30-
url = "https://github.com/JuliaRegistries/General.git"
31-
)
32-
];
33-
CompatHelper.main(; registries = my_registries, master_branch = "master");'
16+
COMPATHELPER_PRIV: ${{ secrets.COMPATHELPER_PRIV }}
17+
run: julia --color=yes -e 'using CompatHelper; CompatHelper.main(master_branch = "master")'

.github/workflows/Documentation.yml

Lines changed: 16 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,26 @@
1-
name: Documentation
1+
name: Build Documentation
22

33
on:
4-
push:
5-
branches:
6-
- 'master'
7-
- 'develop'
8-
- 'release/.*'
9-
tags: '*'
10-
pull_request:
4+
push:
5+
branches:
6+
- master
7+
- develop
8+
- release/*
9+
tags: '*'
10+
pull_request:
1111

1212
jobs:
1313
build:
14-
runs-on: ${{ matrix.os }}
15-
strategy:
16-
matrix:
17-
julia-version: [1.3.0]
18-
julia-arch: [x86]
19-
os: [ubuntu-latest]
14+
runs-on: ubuntu-latest
2015
steps:
21-
- uses: actions/checkout@v1.0.0
22-
- uses: julia-actions/setup-julia@latest
16+
- uses: actions/checkout@v2
17+
- uses: julia-actions/setup-julia@v1
2318
with:
24-
version: ${{ matrix.julia-version }}
25-
- name: Install dependencies
26-
run: |
27-
julia ci_prep.jl;
28-
julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
29-
- name: Build and deploy
19+
version: '1'
20+
- name: Install Dependencies
21+
run: julia --color=yes --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
22+
- name: Build and Deploy
3023
env:
31-
# https://github.com/JuliaDocs/Documenter.jl/issues/1177
3224
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
3325
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key
34-
run: julia --project=docs/ --color=yes docs/make.jl
26+
run: julia --color=yes --project=docs/ docs/make.jl

.github/workflows/TagBot.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: TagBot
22
on:
33
schedule:
4-
- cron: '0 * * * *'
4+
- cron: 0 0 * * *
55
jobs:
66
TagBot:
77
runs-on: ubuntu-latest
@@ -10,4 +10,3 @@ jobs:
1010
with:
1111
token: ${{ secrets.GITHUB_TOKEN }}
1212
ssh: ${{ secrets.TAGBOT_KEY }}
13-
registry: BioJulia/BioJuliaRegistry

.github/workflows/UnitTests.yml

Lines changed: 32 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,44 @@
1-
name: Unit tests
1+
name: Unit Tests
22

3-
on: [push, pull_request]
3+
on:
4+
- push
5+
- pull_request
46

57
jobs:
68
test:
79
runs-on: ${{ matrix.os }}
10+
continue-on-error: ${{ matrix.experimental }}
811
strategy:
12+
fail-fast: false
913
matrix:
10-
julia-version: ['1.1', '1.2', '1.3']
11-
julia-arch: [x64]
14+
julia-version:
15+
- '1.0' # LTS
16+
- '1'
17+
julia-arch: [x86]
1218
os: [ubuntu-latest, windows-latest, macOS-latest]
19+
experimental: [false]
20+
include:
21+
- julia-version: nightly
22+
julia-arch: x86
23+
os: ubuntu-latest
24+
experimental: true
1325

1426
steps:
15-
- uses: actions/checkout@v1.0.0
16-
- uses: julia-actions/setup-julia@v1
27+
- name: Checkout Repository
28+
uses: actions/checkout@v2
29+
- name: Setup Julia
30+
uses: julia-actions/setup-julia@v1
1731
with:
1832
version: ${{ matrix.julia-version }}
19-
arch: ${{ matrix.julia-arch }}
20-
- name: Install dependencies
21-
run: julia ci_prep.jl
22-
- uses: julia-actions/julia-runtest@master
33+
- name: Run Tests
34+
uses: julia-actions/julia-runtest@latest
35+
- name: Create CodeCov
36+
uses: julia-actions/julia-processcoverage@v1
37+
- name: Upload CodeCov
38+
uses: codecov/codecov-action@v1
39+
with:
40+
file: ./lcov.info
41+
flags: unittests
42+
name: codecov-umbrella
43+
fail_ci_if_error: false
44+
token: ${{ secrets.CODECOV_TOKEN }}

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ BGZFStreams = "0.3"
1414
BioCore = "2"
1515
BufferedStreams = "1"
1616
GenomicFeatures = "2"
17-
julia = "1.1"
17+
julia = "1"
1818

1919
[extras]
2020
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

README.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,11 @@ For example:
1717
- An index type for BGZFStream.
1818

1919
## Installation
20-
`Indexes` is bundled into packages like [BED](https://github.com/BioJulia/BED.jl), [GFF3](https://github.com/BioJulia/GFF3.jl), and [XAM](https://github.com/BioJulia/XAM.jl) to assist them with IO streams, so you may not need to install this package explicitly.
21-
However, if you do, `Indexes` is made available to install through BioJulia's package registry.
22-
By default, Julia's package manager only uses the "General" package registry.
23-
Your Julia configuration needs to include the BioJulia registry to be able to install the latest version of `Indexes`.
20+
The Indexes package is bundled into packages like [BED](https://github.com/BioJulia/BED.jl), [GFF3](https://github.com/BioJulia/GFF3.jl), and [XAM](https://github.com/BioJulia/XAM.jl) to assist them with IO streams, so you may not need to install this package explicitly.
21+
However, if you do, Indexes is made available to install through the [https://github.com/juliaregistries/General](General package registry).
2422

25-
To add the BioJulia registry from the [Julia REPL](https://docs.julialang.org/en/v1/manual/getting-started/), press `]` to enter [pkg mode](https://docs.julialang.org/en/v1/stdlib/Pkg/), then enter the following command:
26-
```julia
27-
registry add https://github.com/BioJulia/BioJuliaRegistry.git
28-
```
29-
30-
After adding the registry to your configuration, you can install `Indexes` while in [pkg mode](https://docs.julialang.org/en/v1/stdlib/Pkg/) with the following:
23+
You can install Indexes from the [Julia REPL](https://docs.julialang.org/en/v1/manual/getting-started/).
24+
Press `]` to enter [pkg mode](https://docs.julialang.org/en/v1/stdlib/Pkg/), then enter the following command:
3125
```julia
3226
add Indexes
3327
```

ci_prep.jl

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

coverage/Project.toml

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

coverage/coverage.jl

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

docs/src/index.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,11 @@ For example:
1616
- An index type for BGZFStream.
1717

1818
## Installation
19-
`Indexes` is bundled into packages like [BED](https://github.com/BioJulia/BED.jl), [GFF3](https://github.com/BioJulia/GFF3.jl), and [XAM](https://github.com/BioJulia/XAM.jl) to assist them with IO streams, so you may not need to install this package explicitly.
20-
However, if you do, `Indexes` is made available to install through BioJulia's package registry.
21-
By default, Julia's package manager only uses the "General" package registry.
22-
Your Julia configuration needs to include the BioJulia registry to be able to install the latest version of `Indexes`.
19+
The Indexes package is bundled into packages like [BED](https://github.com/BioJulia/BED.jl), [GFF3](https://github.com/BioJulia/GFF3.jl), and [XAM](https://github.com/BioJulia/XAM.jl) to assist them with IO streams, so you may not need to install this package explicitly.
20+
However, if you do, Indexes is made available to install through the [https://github.com/juliaregistries/General](General package registry).
2321

24-
To add the BioJulia registry from the [Julia REPL](https://docs.julialang.org/en/v1/manual/getting-started/), press `]` to enter [pkg mode](https://docs.julialang.org/en/v1/stdlib/Pkg/), then enter the following command:
25-
```julia
26-
registry add https://github.com/BioJulia/BioJuliaRegistry.git
27-
```
28-
29-
After adding the registry to your configuration, you can install `Indexes` while in [pkg mode](https://docs.julialang.org/en/v1/stdlib/Pkg/) with the following:
22+
You can install Indexes from the [Julia REPL](https://docs.julialang.org/en/v1/manual/getting-started/).
23+
Press `]` to enter [pkg mode](https://docs.julialang.org/en/v1/stdlib/Pkg/), then enter the following command:
3024
```julia
3125
add Indexes
3226
```

0 commit comments

Comments
 (0)