Skip to content

Commit

Permalink
Trying out CI testing
Browse files Browse the repository at this point in the history
  • Loading branch information
anchal-physics committed Feb 7, 2024
1 parent 0e1fb60 commit 29de877
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
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="[email protected]:ProjectTorreyPines/OMAS.jl.git", rev="master"); Pkg.instantiate()'
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1

0 comments on commit 29de877

Please sign in to comment.