Skip to content

add tests

add tests #159

Workflow file for this run

name: CI
on:
push:
branches:
- main
tags: '*'
pull_request:
env:
JULIA_PKG_SERVER: https://internal.juliahub.com/
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: self-hosted
strategy:
fail-fast: false
matrix:
version:
- '1'
os:
- self-hosted
arch:
- x64
steps:
- name: Set debug env
run: export JULIA_DEBUG="loading"
- uses: actions/checkout@v3.3.0
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: webfactory/ssh-agent@v0.8.0
with:
ssh-private-key: ${{ secrets.JULIASIM_REGISTRY_SSH_KEY }}
- uses: actions/cache@v1
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- uses: PumasAI/add-private-registry@main
with:
juliahub_token_encoded: ${{ secrets.JULIAHUB_TOKEN_ENCODED }}
private_registry_name: JuliaSimRegistry
private_registry_uuid: 309a7822-a73e-4490-9504-7d1983f27685
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1