-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (29 loc) · 995 Bytes
/
CI.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Unit Tests
on: [push, pull_request, workflow_dispatch]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
julia-version: ['1.7', '1.9']
julia-arch: [x64]
os: [ubuntu-latest] # [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@latest
with:
version: ${{ matrix.julia-version }}
- uses: julia-actions/cache@v1
- uses: julia-actions/julia-buildpkg@latest
- uses: julia-actions/julia-runtest@latest
register:
needs: test # Only run this once test is completed
if: github.ref == 'refs/heads/master' # Only run the registrator if the Job is run on master
name: Register Package
runs-on: ubuntu-latest
steps:
- uses: lukasgrunwald/julia-register-local@master
with:
localregistry: git@github.com:lukasgrunwald/CondMatRegistry.git
ssh_keys: |
${{ secrets.REGISTRY_DEPLOY }}