Skip to content

Commit 11f9afc

Browse files
authored
restructure repository (#154)
1 parent 08ff9a6 commit 11f9afc

50 files changed

Lines changed: 63 additions & 42 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/CompatHelper.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- name: "Run CompatHelper"
3838
run: |
3939
import CompatHelper
40-
CompatHelper.main()
40+
CompatHelper.main(subdirs=["ColorSchemes"])
4141
shell: julia --color=yes {0}
4242
env:
4343
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/Invalidations.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,24 @@ jobs:
1919
- uses: julia-actions/setup-julia@v1
2020
with:
2121
version: '1'
22-
- uses: actions/checkout@v3
23-
- uses: julia-actions/julia-buildpkg@v1
22+
- uses: actions/checkout@v6
23+
- uses: julia-actions/julia-buildpkg@latest
24+
with:
25+
project: ColorSchemes
2426
- uses: julia-actions/julia-invalidations@v1
27+
with:
28+
project: ColorSchemes
2529
id: invs_pr
2630

27-
- uses: actions/checkout@v3
31+
- uses: actions/checkout@v6
2832
with:
2933
ref: ${{ github.event.repository.default_branch }}
30-
- uses: julia-actions/julia-buildpkg@v1
34+
- uses: julia-actions/julia-buildpkg@latest
35+
with:
36+
project: ColorSchemes
3137
- uses: julia-actions/julia-invalidations@v1
38+
with:
39+
project: ColorSchemes
3240
id: invs_default
3341

3442
- name: Report invalidation counts

.github/workflows/TagBot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
steps:
2828
- uses: JuliaRegistries/TagBot@v1
2929
with:
30+
subdir: ColorSchemes
3031
token: ${{ secrets.GITHUB_TOKEN }}
3132
# Edit the following line to reflect the actual name of the GitHub Secret containing your private key
3233
ssh: ${{ secrets.DOCUMENTER_KEY }}

.github/workflows/ci.yml

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,47 @@
11
name: CI
2+
23
on:
34
pull_request:
4-
branches:
5-
- master
5+
branches: [master]
66
push:
7-
branches:
8-
- master
7+
branches: [master]
98
tags: '*'
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
12+
cancel-in-progress: true
13+
1014
jobs:
1115
test:
12-
name: Julia ${{ matrix.julia-version }} - ${{ matrix.os }} - ${{ matrix.julia-arch }}
16+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
1317
runs-on: ${{ matrix.os }}
1418
strategy:
1519
fail-fast: false
1620
matrix:
17-
julia-version:
18-
- "1.6"
19-
- "1"
20-
os:
21-
- ubuntu-latest
22-
- windows-latest
23-
julia-arch:
24-
- x64
25-
exclude:
26-
- os: macOS-latest
27-
julia-arch: aarch64
28-
julia-version: '1'
21+
version:
22+
- '1.6' # lowest declared LTS in Project.toml
23+
- 'lts' # latest LTS
24+
- '1'
25+
os: [ubuntu-latest, windows-latest, macos-latest]
26+
arch: [x64]
2927

3028
steps:
31-
- uses: actions/checkout@v4
29+
- uses: actions/checkout@v6
3230
- uses: julia-actions/setup-julia@v2
3331
with:
34-
version: ${{ matrix.julia-version }}
35-
arch: ${{ matrix.julia-arch }}
32+
version: ${{ matrix.version }}
33+
arch: ${{ matrix.arch }}
3634
- uses: julia-actions/cache@v2
37-
- uses: julia-actions/julia-buildpkg@v1
38-
- uses: julia-actions/julia-runtest@v1
39-
- uses: julia-actions/julia-processcoverage@v1
40-
- uses: codecov/codecov-action@v4
35+
- uses: julia-actions/julia-buildpkg@latest
36+
with:
37+
project: ColorSchemes
38+
- uses: julia-actions/julia-runtest@latest
39+
with:
40+
project: ColorSchemes
41+
- uses: julia-actions/julia-processcoverage@latest
42+
with:
43+
directories: ColorSchemes/src
44+
- uses: codecov/codecov-action@v5
4145
with:
4246
file: lcov.info
4347
token: ${{ secrets.CODECOV_TOKEN }}
@@ -46,20 +50,16 @@ jobs:
4650
name: Documentation
4751
runs-on: ubuntu-latest
4852
steps:
49-
- uses: actions/checkout@v4
50-
- uses: julia-actions/setup-julia@v2
53+
- uses: actions/checkout@v6
54+
- uses: julia-actions/setup-julia@latest
5155
with:
5256
version: '1'
57+
- run: julia --project=docs -e 'using Pkg; Pkg.instantiate()'
5358
- run: |
5459
julia --project=docs -e '
55-
using Pkg
56-
Pkg.develop(PackageSpec(path=pwd()))
57-
Pkg.instantiate()'
58-
- run: |
59-
julia --project=docs -e '
60-
using Documenter: doctest
61-
using ColorSchemes
62-
doctest(ColorSchemes)' # change ColorSchemes to the name of your package
60+
import Documenter, ColorSchemes
61+
Documenter.doctest(joinpath(@__DIR__, "docs", "src"), [ColorSchemes])
62+
'
6363
- run: julia --project=docs docs/make.jl
6464
env:
6565
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
*.cov
22
.vscode/*
3+
34
docs/build/*
4-
Manifest.toml
5-
src/build_*
5+
**/Manifest.toml
6+
7+
**/src/build_*

ColorSchemes/LICENSE.md

Lines changed: 1 addition & 0 deletions

Project.toml renamed to ColorSchemes/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ColorVectorSpace = "0.10, 0.11"
1717
Colors = "0.12, 0.13, 0.13.1"
1818
FixedPointNumbers = "0.8, 0.8.5"
1919
PrecompileTools = "1"
20-
julia = "1"
20+
julia = "1.6"
2121

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

ColorSchemes/README.md

Lines changed: 1 addition & 0 deletions

0 commit comments

Comments
 (0)