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
8 changes: 4 additions & 4 deletions .github/workflows/pipeline-run-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:

- name: Install Julia dependencies
run: |
julia --project=EpiAutoGP -e 'using Pkg; Pkg.instantiate()'
julia --project=pipelines/epiautogp -e 'using Pkg; Pkg.instantiate()'

- name: Download test data
uses: actions/download-artifact@v8
Expand Down Expand Up @@ -103,7 +103,7 @@ jobs:

- name: Install Julia dependencies
run: |
julia --project=EpiAutoGP -e 'using Pkg; Pkg.instantiate()'
julia --project=pipelines/epiautogp -e 'using Pkg; Pkg.instantiate()'

- name: Download test data
uses: actions/download-artifact@v8
Expand Down Expand Up @@ -146,7 +146,7 @@ jobs:

- name: Install Julia dependencies
run: |
julia --project=EpiAutoGP -e 'using Pkg; Pkg.instantiate()'
julia --project=pipelines/epiautogp -e 'using Pkg; Pkg.instantiate()'

- name: Download test data
uses: actions/download-artifact@v8
Expand Down Expand Up @@ -189,7 +189,7 @@ jobs:

- name: Install Julia dependencies
run: |
julia --project=EpiAutoGP -e 'using Pkg; Pkg.instantiate()'
julia --project=pipelines/epiautogp -e 'using Pkg; Pkg.instantiate()'

- name: Download test data
uses: actions/download-artifact@v8
Expand Down
30 changes: 7 additions & 23 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
run: |
uv run pytest \
--ignore=pipelines/tests/test_epiautogp_parquet_interop.py \
--ignore=pipelines/tests/test_epiautogp_parquet.py \
--cov=pipelines --cov-report=term --cov-report=xml:pipelines-coverage.xml .

- name: Upload results to Codecov
Expand Down Expand Up @@ -88,7 +89,7 @@ jobs:
path: ${{ runner.temp }}/package

epiautogp-test:
name: Run EpiAutoGP tests and collect coverage
name: Run EpiAutoGP runner output tests
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -99,36 +100,19 @@ jobs:
with:
version: "1.11"

- name: Run tests
uses: julia-actions/julia-runtest@v1
with:
project: EpiAutoGP
coverage: true

- name: Process coverage
uses: julia-actions/julia-processcoverage@v1
with:
directories: EpiAutoGP/src

- name: Upload results to Codecov
uses: codecov/codecov-action@v6
with:
env_vars: OS,PYTHON
fail_ci_if_error: true
flags: epiautogp
files: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
- name: Install Julia dependencies
run: |
julia --project=pipelines/epiautogp -e 'using Pkg; Pkg.instantiate()'

- name: Set up R with hewr
uses: ./.github/actions/setup-hewr

- name: Set up Pyrenew-HEW via UV
uses: ./.github/actions/setup-pyrenew-hew

- name: Instantiate EpiAutoGP Julia project
- name: Run direct EpiAutoGP parquet test
run: |
julia --project=EpiAutoGP -e 'using Pkg; Pkg.instantiate()'
uv run pytest pipelines/tests/test_epiautogp_parquet.py -q

- name: Run EpiAutoGP parquet interop test
run: |
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ target/
# https://github.com/github/gitignore/blob/main/Julia.gitignore
# Manifest files generated by the package manager
Manifest.toml
!pipelines/epiautogp/Manifest.toml

# Files generated by invoking Julia with --code-coverage
*.jl.cov
Expand Down
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ repos:
hooks:
- id: detect-secrets
args: ["--baseline", ".secrets.baseline"]
exclude: package.lock.json
exclude: ^(package\.lock\.json|pipelines/epiautogp/Manifest\.toml)$
# R
- repo: https://github.com/posit-dev/air-pre-commit
rev: 0.9.0
Expand All @@ -59,3 +59,4 @@ repos:
hooks:
- id: typos
args: ["--force-exclude"]
exclude: ^pipelines/epiautogp/Manifest\.toml$
20 changes: 15 additions & 5 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,25 @@ ENV UV_PYTHON_CACHE_DIR=/root/.cache/uv/python
# R package - hewr
COPY ./hewr /cfa-stf-routine-forecasting/hewr

# Julia package - EpiAutoGP
COPY ./EpiAutoGP /cfa-stf-routine-forecasting/EpiAutoGP
# Julia environment for direct NowcastAutoGP runner
# Copy only Julia environment metadata first so dependency installation is cached
# independently of changes to pipeline source files. The full pipelines tree is
# copied later.
COPY ./pipelines/epiautogp/Project.toml \
./pipelines/epiautogp/Manifest.toml \
/cfa-stf-routine-forecasting/pipelines/epiautogp/

# Set working directory
WORKDIR /cfa-stf-routine-forecasting

# Cache Julia packages and artifacts
RUN --mount=type=cache,target=/root/.julia \
julia --project=EpiAutoGP -e 'using Pkg; Pkg.instantiate()'
# Instantiate Julia dependencies into the image so the runtime container can run
# the EpiAutoGP subprocess without downloading packages. This is a script
# environment under pipelines/epiautogp, so we commit its Manifest.toml for a
# reproducible EpiAutoGP dependency set.
RUN julia --project=pipelines/epiautogp -e 'using Pkg; Pkg.instantiate()'




# Install hewr
RUN Rscript -e "install.packages('pak')"
Expand Down
37 changes: 0 additions & 37 deletions EpiAutoGP/Project.toml

This file was deleted.

114 changes: 0 additions & 114 deletions EpiAutoGP/README.md

This file was deleted.

82 changes: 0 additions & 82 deletions EpiAutoGP/run.jl

This file was deleted.

Loading