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.
@@ -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
@@ -0,0 +1,5 @@
1
+ **/__pycache__/**
2
+ **/**egg-info/**
3
+ **/dist/**
4
+ src/ropt_nomad/version.py
5
+ **/optimizer_output.txt