Trying out CI testing #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: ["master", "dev", "autotest"] | |
pull_request: | |
branches: ["master", "dev"] | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
julia-version: [1.9.3] | |
julia-arch: [x86] | |
os: [ubuntu-latest] | |
steps: | |
- uses: julia-actions/setup-julia@latest | |
with: | |
version: ${{ matrix.julia-version }} | |
- uses: actions/checkout@v4 | |
- name: Configure ssh keys | |
run: | | |
mkdir -p ~/.ssh | |
echo "${{ secrets.SSH_ID_RSA }}" > /home/runner/.ssh/id_rsa | |
chmod 600 ~/.ssh/id_rsa | |
echo "${{ secrets.SSH_ID_ED25519 }}" > /home/runner/.ssh/id_rsa | |
chmod 600 ~/.ssh/id_rsa | |
echo "${{ secrets.SSH_CONFIG }}" > /home/runner/.ssh/config | |
ssh-keyscan github.com >> /home/runner/.ssh/known_hosts | |
ssh-keyscan cybele.gat.com >> /home/runner/.ssh/known_hosts | |
ssh-keyscan omega.gat.com >> /home/runner/.ssh/known_hosts | |
ssh-keyscan iris.gat.com >> /home/runner/.ssh/known_hosts | |
- name: DVC Pull | |
run: | | |
dvc pull | |
- uses: julia-actions/cache@v1 | |
- uses: julia-actions/julia-buildpkg@v1 | |
- name: Setup julia environment | |
run: | | |
julia --project=. -e 'using Pkg; Pkg.rm("OMAS"); Pkg.add(url="git@github.com:ProjectTorreyPines/OMAS.jl.git", rev="master"); Pkg.instantiate()' | |
- uses: julia-actions/julia-runtest@v1 | |
- uses: julia-actions/julia-processcoverage@v1 |