Skip to content

Commit

Permalink
Add CI test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lxmota committed Dec 5, 2024
1 parent 2bae1a8 commit 7b1daad
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Norma CI

on:
push:
branches:
- main # Run on pushes to the main branch
pull_request: # Run on pull requests
schedule:
- cron: '0 8 * * *' # Midnight PST (8:00 UTC)

jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest] # Platforms to test
julia-version: [1.10, 1.11] # Julia versions to test
runs-on: ${{ matrix.os }}

steps:
# Step 1: Check out the code
- name: Check out code
uses: actions/checkout@v3

# Step 2: Set up Julia
- name: Set up Julia
uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}

# Step 3: Install dependencies
- name: Install dependencies
run: |
julia --project=. -e 'using Pkg; Pkg.instantiate()'
# Step 4: Run the tests
- name: Run tests
run: |
julia --project=. -e 'using Pkg; Pkg.test()'
# Step 5: Upload test results (optional)
- name: Upload test results
if: always() # Run this even if the test step fails
uses: actions/upload-artifact@v3
with:
name: test-results
path: test-results.log

0 comments on commit 7b1daad

Please sign in to comment.