Skip to content

Commit 0f91205

Browse files
authored
Merge pull request #51 from invenia/fc/fix-ci
Fixing up CI
2 parents 0737da1 + ce9003e commit 0f91205

File tree

4 files changed

+19
-109
lines changed

4 files changed

+19
-109
lines changed

.github/workflows/CI.yml

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
version:
18-
- 1.0.5
19-
- 1.3
20-
- 1
18+
- "1.0" # LTS
19+
- "1.5" # Invenia Prod Version
20+
- "1" # Latest Release
2121
os:
2222
- ubuntu-latest
2323
arch:
@@ -29,20 +29,18 @@ jobs:
2929
with:
3030
version: ${{ matrix.version }}
3131
arch: ${{ matrix.arch }}
32-
- uses: actions/cache@v1
32+
- uses: actions/cache@v2
3333
env:
3434
cache-name: cache-artifacts
3535
with:
3636
path: ~/.julia/artifacts
37-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
37+
key: ${{ runner.os }}-${{ matrix.arch }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
3838
restore-keys: |
39-
${{ runner.os }}-test-${{ env.cache-name }}-
40-
${{ runner.os }}-test-
39+
${{ runner.os }}-${{ matrix.arch }}-test-${{ env.cache-name }}-
40+
${{ runner.os }}-${{ matrix.arch }}-test-
41+
${{ runner.os }}-${{ matrix.arch }}-
4142
${{ runner.os }}-
4243
- uses: julia-actions/julia-buildpkg@latest
43-
- run: |
44-
git config --global user.name Tester
45-
git config --global user.email [email protected]
4644
- uses: julia-actions/julia-runtest@latest
4745
- uses: julia-actions/julia-processcoverage@v1
4846
- uses: codecov/codecov-action@v1
@@ -53,13 +51,13 @@ jobs:
5351
name: Notify Slack Failure
5452
needs: test
5553
runs-on: ubuntu-latest
56-
if: github.event == 'schedule'
54+
if: always() && github.event_name == 'schedule'
5755
steps:
5856
- uses: technote-space/workflow-conclusion-action@v2
5957
- uses: voxmedia/github-action-slack-notify-build@v1
6058
if: env.WORKFLOW_CONCLUSION == 'failure'
6159
with:
62-
channel: nightly-dev
60+
channel: nightly-rse
6361
status: FAILED
6462
color: danger
6563
env:
@@ -73,16 +71,12 @@ jobs:
7371
- uses: julia-actions/setup-julia@v1
7472
with:
7573
version: '1'
76-
- run: |
77-
git config --global user.name name
78-
git config --global user.email email
79-
git config --global github.user username
8074
- run: |
8175
julia --project=docs -e '
82-
using Pkg;
83-
Pkg.develop(PackageSpec(path=pwd()));
84-
Pkg.instantiate();
85-
include("docs/make.jl");'
76+
using Pkg
77+
Pkg.develop(PackageSpec(path=pwd()))
78+
Pkg.instantiate()
79+
include("docs/make.jl")'
8680
env:
8781
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8882
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

.github/workflows/JuliaNightly.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,15 @@ jobs:
1313
with:
1414
version: nightly
1515
arch: x64
16-
- uses: actions/cache@v1
16+
- uses: actions/cache@v2
1717
env:
18-
cache-name: cache-artifacts
18+
cache-name: julia-nightly-cache-artifacts
1919
with:
2020
path: ~/.julia/artifacts
21-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
21+
key: ${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
2222
restore-keys: |
23-
${{ runner.os }}-test-${{ env.cache-name }}-
24-
${{ runner.os }}-test-
25-
${{ runner.os }}-
23+
${{ env.cache-name }}-
2624
- uses: julia-actions/julia-buildpkg@latest
27-
- run: |
28-
git config --global user.name Tester
29-
git config --global user.email [email protected]
3025
- uses: julia-actions/julia-runtest@latest
3126
- uses: julia-actions/julia-processcoverage@v1
3227
- uses: codecov/codecov-action@v1

.github/workflows/nightly-CI.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://invenia.github.io/BlockDiagonals.jl/stable)
44
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://invenia.github.io/BlockDiagonals.jl/dev)
5-
![CI](https://github.com/invenia/BlockDiagonals.jl/workflows/CI/badge.svg)(https://github.com/Invenia/BlockDiagonals.jl/actions?query=workflow%3ACI)
5+
[![CI](https://github.com/invenia/BlockDiagonals.jl/workflows/CI/badge.svg)](https://github.com/Invenia/BlockDiagonals.jl/actions?query=workflow%3ACI)
66
[![Codecov](https://codecov.io/gh/invenia/BlockDiagonals.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/invenia/BlockDiagonals.jl)
77
[![code style blue](https://img.shields.io/badge/code%20style-blue-4495d1.svg)](https://github.com/invenia/BlueStyle)
88

0 commit comments

Comments
 (0)