From b4b2aea0d97225649941eeba3740c5c9183b2a3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pacaud?= Date: Thu, 22 Feb 2024 13:37:31 +0100 Subject: [PATCH] add github actions (#4) --- .github/workflows/action.yml | 25 +++++++++++++++++++++++++ Project.toml | 5 ++++- test/Project.toml | 5 +++++ 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/action.yml create mode 100644 test/Project.toml 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" +