ropt-nomad 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ropt_nomad-0.1.0/.github/workflows/static-checks.yml +41 -0
- ropt_nomad-0.1.0/.github/workflows/tests.yml +33 -0
- ropt_nomad-0.1.0/.gitignore +5 -0
- ropt_nomad-0.1.0/LICENSE +674 -0
- ropt_nomad-0.1.0/PKG-INFO +84 -0
- ropt_nomad-0.1.0/README.md +61 -0
- ropt_nomad-0.1.0/examples/discrete.py +78 -0
- ropt_nomad-0.1.0/examples/rosenbrock.py +70 -0
- ropt_nomad-0.1.0/pyproject.toml +95 -0
- ropt_nomad-0.1.0/setup.cfg +4 -0
- ropt_nomad-0.1.0/src/ropt_nomad/__init__.py +1 -0
- ropt_nomad-0.1.0/src/ropt_nomad/nomad.py +326 -0
- ropt_nomad-0.1.0/src/ropt_nomad/py.typed +0 -0
- ropt_nomad-0.1.0/src/ropt_nomad/version.py +16 -0
- ropt_nomad-0.1.0/src/ropt_nomad.egg-info/PKG-INFO +84 -0
- ropt_nomad-0.1.0/src/ropt_nomad.egg-info/SOURCES.txt +22 -0
- ropt_nomad-0.1.0/src/ropt_nomad.egg-info/dependency_links.txt +1 -0
- ropt_nomad-0.1.0/src/ropt_nomad.egg-info/entry_points.txt +2 -0
- ropt_nomad-0.1.0/src/ropt_nomad.egg-info/requires.txt +6 -0
- ropt_nomad-0.1.0/src/ropt_nomad.egg-info/top_level.txt +1 -0
- ropt_nomad-0.1.0/tests/__init__.py +0 -0
- ropt_nomad-0.1.0/tests/conftest.py +72 -0
- ropt_nomad-0.1.0/tests/test_examples.py +29 -0
- ropt_nomad-0.1.0/tests/test_nomad_backend.py +319 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
name: Run static checks
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
workflow_dispatch:
|
|
9
|
+
schedule:
|
|
10
|
+
- cron: '43 1 * * 1'
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
static-checks:
|
|
14
|
+
runs-on: ubuntu-22.04
|
|
15
|
+
strategy:
|
|
16
|
+
fail-fast: false
|
|
17
|
+
matrix:
|
|
18
|
+
python-version: ["3.10"]
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@v4
|
|
21
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
22
|
+
uses: actions/setup-python@v5
|
|
23
|
+
with:
|
|
24
|
+
python-version: ${{ matrix.python-version }}
|
|
25
|
+
- name: Install dependencies
|
|
26
|
+
run: |
|
|
27
|
+
python -m pip install --upgrade pip
|
|
28
|
+
python -m pip install ropt
|
|
29
|
+
python -m pip install .[test]
|
|
30
|
+
- name: Run ruff format
|
|
31
|
+
if: always()
|
|
32
|
+
run: |
|
|
33
|
+
python -m ruff format --check src/ropt_nomad tests
|
|
34
|
+
- name: Run ruff
|
|
35
|
+
if: always()
|
|
36
|
+
run: |
|
|
37
|
+
python -m ruff check src/ropt_nomad tests
|
|
38
|
+
- name: Run mypy
|
|
39
|
+
if: always()
|
|
40
|
+
run: |
|
|
41
|
+
python -m mypy src/ropt_nomad tests
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
name: Run tests
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
workflow_dispatch:
|
|
9
|
+
schedule:
|
|
10
|
+
- cron: '43 1 * * 1'
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
tests:
|
|
14
|
+
runs-on: ubuntu-22.04
|
|
15
|
+
strategy:
|
|
16
|
+
fail-fast: false
|
|
17
|
+
matrix:
|
|
18
|
+
python-version: ["3.8", "3.9", "3.10", "3.11"]
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@v4
|
|
21
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
22
|
+
uses: actions/setup-python@v5
|
|
23
|
+
with:
|
|
24
|
+
python-version: ${{ matrix.python-version }}
|
|
25
|
+
- name: Install dependencies
|
|
26
|
+
run: |
|
|
27
|
+
python -m pip install --upgrade pip
|
|
28
|
+
python -m pip install ropt
|
|
29
|
+
python -m pip install pytest
|
|
30
|
+
python -m pip install .
|
|
31
|
+
- name: Run pytest
|
|
32
|
+
run: |
|
|
33
|
+
python -m pytest tests
|