Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ local_test/
unit_test/
.env
.env.local
.env-template
.env.template
.gitignore
.taplo.toml
CHANGELOG.md
Expand Down
23 changes: 0 additions & 23 deletions .env-template

This file was deleted.

130 changes: 45 additions & 85 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,115 +1,75 @@
name: Build-Test-Lint-etc (linux)
name: Build-Test-Lint-Typecheck

on: [push]

jobs:
setup:
lint:
name: Lint
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [ "3.10" ]
name: Setup
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
- name: setup python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- run: |
cache: pip
- name: create and activate venv
run: |
./ci/linux/create_venv.sh
./ci/linux/install_dependencies.sh
- name: 'Tar venv'
run: tar -cvf venv.tar ./.venv/
- name: Save venv
uses: actions/upload-artifact@v4
with:
path: ./venv.tar
name: ${{ runner.os }}-python-${{ matrix.python-version }}-venv-${{github.run_id}}

lint:
name: Lint
runs-on: ubuntu-latest
needs: [ setup ]
strategy:
fail-fast: false
matrix:
python-version: [ "3.10" ]
steps:
- uses: actions/checkout@v3
- name: Restore venv
uses: actions/download-artifact@v4
with:
name: ${{ runner.os }}-python-${{ matrix.python-version }}-venv-${{github.run_id}}
- name: Untar venv
run: tar -xvf venv.tar
- name: run unit tests
run: |
./ci/linux/lint.sh
- name: run lint
run: |
./ci/linux/lint.sh

test:
name: Test
name: Unit Tests
runs-on: ubuntu-latest
needs: [ setup ]
strategy:
fail-fast: false
matrix:
python-version: [ "3.10" ]
steps:
- uses: actions/checkout@v3
- name: Restore venv
uses: actions/download-artifact@v4
with:
name: ${{ runner.os }}-python-${{ matrix.python-version }}-venv-${{github.run_id}}
- name: Untar venv
run: tar -xvf venv.tar
- name: run unit tests
run: |
./ci/linux/test_unit.sh

- name: Surface failing tests
if: always()
uses: pmeier/pytest-results-action@main
with:
# A list of JUnit XML files, directories containing the former, and wildcard
# patterns to process.
# See @actions/glob for supported patterns.
path: test-results.xml

# Add a summary of the results at the top of the report
# Default: true
summary: true

# Select which results should be included in the report.
# Follows the same syntax as
# `pytest -r`
# Default: fEX
display-options: fEX

# Fail the workflow if no JUnit XML was found.
# Default: true
fail-on-empty: true
- uses: actions/checkout@v3
- name: setup python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: create and activate venv
run: |
./ci/linux/create_venv.sh
./ci/linux/install_dependencies.sh
- name: run unit tests
run: |
./ci/linux/test_unit.sh
- name: surface failing tests
if: always()
uses: pmeier/pytest-results-action@main
with:
path: test-results.xml
summary: true
display-options: fEX
fail-on-empty: true

typecheck:
name: Typecheck
runs-on: ubuntu-latest
needs: [ setup ]
strategy:
fail-fast: false
matrix:
python-version: [ "3.10" ]
steps:
- uses: actions/checkout@v3
- name: Restore venv
uses: actions/download-artifact@v4
with:
name: ${{ runner.os }}-python-${{ matrix.python-version }}-venv-${{github.run_id}}
- name: Untar venv
run: tar -xvf venv.tar
- name: Add mypy annotator
uses: pr-annotators/mypy-pr-annotator@v1.0.0

- name: run typechecker
run: |
./ci/linux/typecheck.sh
- uses: actions/checkout@v3
- name: setup python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: create and activate venv
run: |
./ci/linux/create_venv.sh
./ci/linux/install_dependencies.sh
- name: run typechecker
run: |
./ci/linux/typecheck.sh
14 changes: 7 additions & 7 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ certifi==2026.2.25
# via
# -c requirements.txt
# requests
charset-normalizer==3.4.4
charset-normalizer==3.4.6
# via
# -c requirements.txt
# requests
Expand Down Expand Up @@ -129,7 +129,7 @@ lxml==6.0.2
# pyecore
mccabe==0.7.0
# via flake8
mesido==0.1.17
mesido==0.1.18
# via
# -c requirements.txt
# omotes-grow-worker (pyproject.toml)
Expand Down Expand Up @@ -159,7 +159,7 @@ omotes-sdk-protocol==1.2.0
# via
# -c requirements.txt
# omotes-sdk-python
omotes-sdk-python==4.3.2
omotes-sdk-python==4.3.3
# via
# -c requirements.txt
# omotes-grow-worker (pyproject.toml)
Expand All @@ -186,7 +186,7 @@ pandas==1.5.3
# mesido
pathspec==1.0.4
# via black
platformdirs==4.9.2
platformdirs==4.9.4
# via black
pluggy==1.6.0
# via pytest
Expand All @@ -211,7 +211,7 @@ pyecore==0.13.2
# -c requirements.txt
# mesido
# pyesdl
pyesdl==25.7
pyesdl==26.2
# via
# -c requirements.txt
# mesido
Expand Down Expand Up @@ -242,7 +242,7 @@ python-dotenv==1.0.1
# via
# -c requirements.txt
# omotes-grow-worker (pyproject.toml)
pytz==2025.2
pytz==2026.1.post1
# via
# -c requirements.txt
# influxdb
Expand Down Expand Up @@ -326,7 +326,7 @@ wcwidth==0.6.0
# prompt-toolkit
wheel==0.45.1
# via omotes-grow-worker (pyproject.toml)
yarl==1.22.0
yarl==1.23.0
# via
# -c requirements.txt
# aio-pika
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ requires-python = ">=3.10"

dependencies = [
"python-dotenv ~= 1.0.0",
"mesido ~= 0.1.17",
"omotes-sdk-python ~= 4.3.1"
"mesido ~= 0.1.18",
"omotes-sdk-python ~= 4.3.3"
]

[project.optional-dependencies]
Expand Down
12 changes: 6 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ celery==5.6.2
# via omotes-sdk-python
certifi==2026.2.25
# via requests
charset-normalizer==3.4.4
charset-normalizer==3.4.6
# via requests
click==8.3.1
# via
Expand Down Expand Up @@ -54,7 +54,7 @@ kombu==5.6.2
# via celery
lxml==6.0.2
# via pyecore
mesido==0.1.17
mesido==0.1.18
# via omotes-grow-worker (pyproject.toml)
msgpack==1.1.2
# via influxdb
Expand All @@ -69,7 +69,7 @@ numpy==1.25.2
# scipy
omotes-sdk-protocol==1.2.0
# via omotes-sdk-python
omotes-sdk-python==4.3.2
omotes-sdk-python==4.3.3
# via omotes-grow-worker (pyproject.toml)
ordered-set==4.1.0
# via pyecore
Expand All @@ -91,7 +91,7 @@ pyecore==0.13.2
# via
# mesido
# pyesdl
pyesdl==25.7
pyesdl==26.2
# via
# mesido
# omotes-sdk-python
Expand All @@ -107,7 +107,7 @@ python-dateutil==2.9.0.post0
# pandas
python-dotenv==1.0.1
# via omotes-grow-worker (pyproject.toml)
pytz==2025.2
pytz==2026.1.post1
# via
# influxdb
# pandas
Expand Down Expand Up @@ -147,7 +147,7 @@ vine==5.1.0
# kombu
wcwidth==0.6.0
# via prompt-toolkit
yarl==1.22.0
yarl==1.23.0
# via
# aio-pika
# aiormq
Expand Down
Loading