Skip to content

Commit a314504

Browse files
authored
setup CI (#1)
1 parent d83cd9c commit a314504

File tree

7 files changed

+148
-0
lines changed

7 files changed

+148
-0
lines changed

.codecov.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
coverage:
2+
status:
3+
patch:
4+
default:
5+
only_pulls: true # Only show the `codecov/patch` commit status on pull requests.
6+
project:
7+
default:
8+
only_pulls: true # Only show the `codecov/project` commit status on pull requests.

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
2+
version: 2
3+
updates:
4+
- package-ecosystem: "github-actions"
5+
directory: "/" # Location of package manifests
6+
schedule:
7+
interval: "monthly"

.github/workflows/ci.yml

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- 'master'
7+
- 'release-*'
8+
tags: '*'
9+
concurrency:
10+
# Skip intermediate builds: all builds except for builds on the `master` or `release-*` branches
11+
# Cancel intermediate builds: only pull request builds
12+
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release-') || github.run_number }}
13+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
14+
jobs:
15+
test:
16+
runs-on: ${{ matrix.os }}
17+
timeout-minutes: 60
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
julia-version:
22+
- 'nightly'
23+
os:
24+
- ubuntu-latest
25+
- windows-latest
26+
julia-arch:
27+
- x64
28+
- x86
29+
include:
30+
- os: macOS-latest
31+
julia-arch: aarch64
32+
julia-version: 'nightly'
33+
- os: macOS-13
34+
julia-arch: x64
35+
julia-version: 'nightly'
36+
steps:
37+
- uses: actions/checkout@v4
38+
- uses: julia-actions/setup-julia@v2
39+
with:
40+
version: ${{ matrix.julia-version }}
41+
arch: ${{ matrix.julia-arch }}
42+
- uses: julia-actions/cache@v2
43+
- uses: julia-actions/julia-buildpkg@v1
44+
- uses: julia-actions/julia-runtest@v1
45+
- uses: julia-actions/julia-processcoverage@v1
46+
- uses: codecov/codecov-action@v5
47+
with:
48+
file: lcov.info
49+
token: ${{ secrets.CODECOV_TOKEN }}
50+
aqua-test:
51+
runs-on: ${{ matrix.os }}
52+
timeout-minutes: 60
53+
permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created
54+
actions: write
55+
contents: read
56+
strategy:
57+
matrix:
58+
julia-version:
59+
- 'nightly'
60+
os:
61+
- ubuntu-latest
62+
julia-arch:
63+
- x64
64+
steps:
65+
- uses: actions/checkout@v4
66+
- uses: julia-actions/setup-julia@v2
67+
with:
68+
version: ${{ matrix.julia-version }}
69+
arch: ${{ matrix.julia-arch }}
70+
- uses: julia-actions/cache@v2
71+
- uses: julia-actions/julia-buildpkg@v1
72+
- uses: julia-actions/julia-runtest@v1
73+
env:
74+
SPARSEARRAYS_AQUA_TEST: true
75+
docs:
76+
runs-on: ubuntu-latest
77+
steps:
78+
- uses: actions/checkout@v4
79+
- uses: julia-actions/setup-julia@v2
80+
with:
81+
version: 'nightly'
82+
- name: Generate docs
83+
run: |
84+
julia --project --color=yes -e 'using Pkg; Pkg.activate("docs"); Pkg.develop(PackageSpec(path = pwd()))'
85+
julia --project=docs --color=yes docs/make.jl pdf
86+
env:
87+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Manifest.toml
2+
Manifest-v*.*.toml
3+
docs/build

LICENSE.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
MIT License
2+
3+
Copyright (c) 2018-2024 SharedArrays.jl contributors:
4+
https://github.com/JuliaSparse/SharedArrays.jl/contributors
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy
7+
of this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in
14+
all copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
SOFTWARE.

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# SharedArrays
2+
3+
| **Build Status** |
4+
|:-----------------------------------------------------------------------------------------------:|
5+
| [![][ci-img]][ci-url] [![][codecov-img]][codecov-url] |
6+
7+
8+
[ci-img]: https://github.com/JuliaLang/sharedarrays.jl/workflows/CI/badge.svg?branch=master
9+
[ci-url]: https://github.com/JuliaLang/sharedarrays.jl/actions?query=workflow%3A%22CI%22
10+
11+
[codecov-img]: https://codecov.io/gh/JuliaLang/sharedarrays.jl/branch/master/graph/badge.svg
12+
[codecov-url]: https://codecov.io/gh/JuliaLang/sharedarrays.jl
13+
14+
This package ships as part of the Julia stdlib.
15+
16+
SharedArrays.jl provides functionality for working with sparse arrays in Julia.

docs/Project.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[deps]
2+
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
3+
4+
[compat]
5+
Documenter = "1"

0 commit comments

Comments
 (0)