diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml new file mode 100644 index 0000000..e77bf53 --- /dev/null +++ b/.github/workflows/action.yml @@ -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 diff --git a/Project.toml b/Project.toml index 98103d1..01f59cf 100644 --- a/Project.toml +++ b/Project.toml @@ -4,6 +4,9 @@ authors = ["fpacaud "] 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" diff --git a/test/Project.toml b/test/Project.toml new file mode 100644 index 0000000..b9af06c --- /dev/null +++ b/test/Project.toml @@ -0,0 +1,5 @@ +[deps] +Ipopt = "b6b21f68-93f8-5de0-b562-5493be1d77c9" +JuMP = "4076af6c-e467-56ae-b986-b466b2749572" +Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" +