Skip to content

Commit

Permalink
add github actions (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
frapac authored Feb 22, 2024
1 parent 673c027 commit b4b2aea
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Run tests

on:
push:
branches:
- main
tags: '*'
pull_request:
types: [opened, synchronize, reopened]

jobs:
test-github:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04]
julia-version: ['1.10']
julia-arch: [x64]
steps:
- uses: actions/checkout@v3
- uses: julia-actions/setup-julia@latest
with:
version: ${{ matrix.julia-version }}
- uses: julia-actions/julia-buildpkg@latest
- uses: julia-actions/julia-runtest@latest
5 changes: 4 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ authors = ["fpacaud <[email protected]>"]
version = "0.1.0"

[deps]
Ipopt = "b6b21f68-93f8-5de0-b562-5493be1d77c9"
JuMP = "4076af6c-e467-56ae-b986-b466b2749572"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"

[compat]
JuMP = "^1.19"
julia = "1.6"
5 changes: 5 additions & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[deps]
Ipopt = "b6b21f68-93f8-5de0-b562-5493be1d77c9"
JuMP = "4076af6c-e467-56ae-b986-b466b2749572"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

0 comments on commit b4b2aea

Please sign in to comment.