Skip to content

Commit

Permalink
getting close
Browse files Browse the repository at this point in the history
  • Loading branch information
cisaacstern committed Nov 23, 2024
1 parent 8dcfb61 commit 0b23e29
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/examples-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ jobs:
check-all-recompiled:
needs: build-release
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
example: [
"events",
"patrols",
"subject-tracking",
]
steps:
- uses: actions/checkout@v4
- name: Download conda channel
Expand All @@ -38,8 +46,10 @@ jobs:
- name: Install pixi
run: curl -fsSL https://pixi.sh/install.sh | bash && echo "$HOME/.pixi/bin" >> $GITHUB_PATH
- name: Check all recompiled
run: pixi run --manifest-path pixi.toml lock-compile

run: |
pixi run -e compile \
python3 dev/check-all-recompiled.py examples/${{ matrix.example }}/spec.yaml \
examples/${{ matrix.example }}/ecoscope-workflows-${{ matrix.example }}-workflow
test-examples-params:
needs: check-all-recompiled # only run if all examples recompiles are up to date
Expand Down
10 changes: 5 additions & 5 deletions src/ecoscope-workflows-core/ecoscope_workflows_core/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -798,18 +798,18 @@ def get_pixi_toml(self) -> PixiToml:
dependencies = dedent(
"""\
[dependencies]
fastapi = "*"
httpx = "*"
uvicorn = "*"
"ruamel.yaml" = "*"
fastapi = {version = "*", channel = "https://conda.anaconda.org/conda-forge/"}
httpx = {version = "*", channel = "https://conda.anaconda.org/conda-forge/"}
uvicorn = {version = "*", channel = "https://conda.anaconda.org/conda-forge/"}
"ruamel.yaml" = {version = "*", channel = "https://conda.anaconda.org/conda-forge/"}
"""
)
for r in self.spec.requirements:
dependencies += f'{r.name} = {{ version = "{r.version}", channel = "{r.channel.base_url}" }}\n'
feature = dedent(
"""\
[feature.test.dependencies]
pytest = "*"
pytest = {version = "*", channel = "https://conda.anaconda.org/conda-forge/"}
[feature.test.tasks]
test-all = "python -m pytest -v tests"
test-app-params = "python -m pytest -v tests/test_app.py -k 'params or formdata'"
Expand Down

0 comments on commit 0b23e29

Please sign in to comment.