Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding initial github actions #6

Merged
merged 9 commits into from
Nov 21, 2023
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions .github/workflows/build-test-coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Test

on:
push:
branches: [main, master]
tags: ["*"]
pull_request:

jobs:
Test:
name: Julia (v${{ matrix.version }}) on ${{ matrix.os }}-${{ matrix.arch }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
### NOTE: Scope
### - for testing and early development, focusing on just latest
### version testing against linux

version:
- 1 # automatically expands to the latest stable 1.x release of Julia
# - 1.0
# - nightly
os:
- ubuntu-latest
arch:
- x64
# - x86
# include:
# # test macOS and Windows with latest Julia only
# - os: macOS-latest
# arch: x64
# version: 1
# - os: windows-latest
# arch: x64
# version: 1
# - os: windows-latest
# arch: x86
# version: 1

steps:
- uses: actions/checkout@v2

- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}

- uses: julia-actions/cache@v1

- uses: julia-actions/julia-buildpkg@v1

- uses: julia-actions/julia-runtest@v1

- uses: julia-actions/julia-processcoverage@v1

- uses: codecov/codecov-action@v1
with:
file: lcov.info
30 changes: 30 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy

on:
push:
branches: [main, master]
tags: ["*"]
pull_request:

jobs:
docs:
name: Documenter.jl
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: julia-actions/setup-julia@v1
with:
version: '1'

- run: |
julia --project=docs -e '
using Pkg
Pkg.develop(PackageSpec(path=pwd()))
Pkg.instantiate()
'

- run: cd docs && julia make.jl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*.jl.cov
*.jl.*.cov
*.jl.mem
docs/build/
docs/site/
Manifest.toml
.DS_Store
.vscode
Loading
Loading