Skip to content

Commit

Permalink
add continuous integration and test
Browse files Browse the repository at this point in the history
  • Loading branch information
EigenSolver committed Apr 19, 2024
1 parent 2e72ee5 commit 7f13f57
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 2 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
julia-version: ['1.8', '1.10', 'nightly']
os: [ubuntu-latest, windows-latest, macOS-latest]
include:
- julia-version: '1.10'
os: ubuntu-latest
coverage: true
exclude:
- julia-version: 'nightly'
os: windows-latest
- julia-version: 'nightly'
os: macOS-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
- name: Install dependencies
run: julia --project -e 'using Pkg; Pkg.instantiate()'
- name: Run tests
run: julia --project -e 'using Pkg; Pkg.test()'
- name: Upload coverage
if: matrix.coverage
uses: julia-actions/julia-uploadcodecov@v1
6 changes: 4 additions & 2 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v1
with:
version: '1.6'
version: '1.10'
- name: Install dependencies
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
- name: Build and deploy
Expand All @@ -31,4 +31,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v3
- uses: codecov/codecov-action@v3


0 comments on commit 7f13f57

Please sign in to comment.