-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #426 from GeoDerp/custom_cec
WIP emhass csv append modules and fix inverters syntax and semantics
- Loading branch information
Showing
34 changed files
with
1,039 additions
and
415 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,20 +12,8 @@ permissions: | |
|
||
jobs: | ||
# Google OSV-Scanner | ||
scan-pr: | ||
uses: "geoderp/osv-scanner-action/.github/workflows/[email protected]" | ||
with: | ||
scan-args: |- | ||
--recursive | ||
./ | ||
permissions: | ||
security-events: write | ||
contents: read | ||
actions: read | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
needs: | ||
- scan-pr | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -37,23 +25,36 @@ jobs: | |
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@v5 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
python-version-file: ".python-version" | ||
- name: Set up Python venv | ||
run: uv venv | ||
- name: Special dependencies for macos | ||
run: | | ||
brew install hdf5 | ||
pip3 install numpy==1.26.0 | ||
pip3 install tables==3.9.1 | ||
uv pip install numpy==1.26.0 | ||
uv pip install tables==3.9.1 | ||
if: ${{ matrix.os == 'macos-latest' }} | ||
|
||
- name: Install EMHASS with test dependencies | ||
run: | | ||
pip install .[test] | ||
uv pip install .[test] && uv lock | ||
- name: Test with pytest | ||
run: | | ||
pytest | ||
uv run pytest | ||
scan-pr: | ||
needs: | ||
- build | ||
uses: "geoderp/osv-scanner-action/.github/workflows/[email protected]" | ||
with: | ||
fail-on-vuln: false | ||
scan-args: |- | ||
--recursive | ||
./ | ||
permissions: | ||
security-events: write | ||
contents: read | ||
actions: read |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,40 +7,40 @@ on: | |
|
||
jobs: | ||
# Google OSV-Scanner | ||
osv-scan: | ||
uses: "geoderp/osv-scanner-action/.github/workflows/[email protected]" | ||
with: | ||
scan-args: |- | ||
--recursive | ||
./ | ||
permissions: | ||
security-events: write | ||
contents: read | ||
actions: read | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Python | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@v5 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.11 | ||
- name: Install pypa/build | ||
run: >- | ||
python3 -m pip install build --user | ||
python-version-file: ".python-version" | ||
- name: Build a binary wheel and a source tarball | ||
run: python3 -m build | ||
run: uv build | ||
- name: Store the distribution packages | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: python-package-distributions | ||
path: dist/ | ||
osv-scan: | ||
uses: "geoderp/osv-scanner-action/.github/workflows/[email protected]" | ||
needs: | ||
- build | ||
with: | ||
scan-args: |- | ||
--recursive | ||
./ | ||
permissions: | ||
security-events: write | ||
contents: read | ||
actions: read | ||
publish-to-pypi: | ||
name: >- | ||
Publish Python 🐍 distribution 📦 to PyPI | ||
needs: | ||
- osv-scan | ||
- build | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: pypi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.