Skip to content

Add Julia tests to GitHub actions #2

Add Julia tests to GitHub actions

Add Julia tests to GitHub actions #2

name: CI
on:
push:
branches: [main]
pull_request:
types: [opened, synchronize, reopened]
# needed to allow julia-actions/cache to delete old caches that it has created
permissions:
actions: write
contents: read
jobs:
test:
name: Julia - ${{ github.event_name }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Compile uno_ampl
run: echo 'TODO'
- uses: julia-actions/setup-julia@v2
with:
version: '1'
arch: x86
- uses: julia-actions/cache@v1
- uses: julia-actions/julia-buildpkg@v1
- name: Install
run: julia --color=yes --project=unotest -e 'import Pkg; Pkg.instantiate()'
- name: Run
run: julia --color=yes --project=unotest unotest/runtests.jl