-
Notifications
You must be signed in to change notification settings - Fork 7
49 lines (42 loc) · 1.25 KB
/
test-optimisation.yml
File metadata and controls
49 lines (42 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Optimisation test with IPOPT
on:
workflow_dispatch:
push:
tags: ["v*.*.*"]
branches: [master]
jobs:
test_optimisation:
if: |
github.event_name == 'workflow_dispatch' ||
startsWith(github.ref, 'refs/tags/v') ||
(github.event_name == 'push' &&
github.ref == 'refs/heads/master' &&
contains(github.event.head_commit.message, 'Merge pull request'))
name: Test with IPOPT on Python ${{ matrix.python-version }}, ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: ["3.8", "3.11"]
steps:
- uses: actions/checkout@v4
- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
channels: conda-forge
activate-environment: test-env
environment-file: tests/environment.yml
- name: Install mimosa
shell: bash -l {0}
run: |
pip install .
- name: Dependency check
shell: bash -l {0}
run: |
pip check
- name: Run full tests (with ipopt)
shell: bash -l {0}
run: |
pytest