Skip to content
Open
Show file tree
Hide file tree
Changes from 6 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
52 changes: 52 additions & 0 deletions .github/workflows/julia-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: FLOWFarm integration tests (Julia)

on:
push:
paths:
- "ard/flowfarm/**"
- "ard/farm_aero/flowfarm.py"
- "test/flowfarm/**"
pull_request:
paths:
- "ard/flowfarm/**"
- "ard/farm_aero/flowfarm.py"
- "test/flowfarm/**"
workflow_dispatch: # allow manual runs from the Actions UI

jobs:

test-julia:
name: Run FLOWFarm integration tests
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Set up Julia
uses: julia-actions/setup-julia@v2
with:
version: "1" # latest stable 1.x

- name: Cache Julia packages
uses: julia-actions/cache@v2

- name: Install Ard with FLOWFarm extras
run: pip install ".[dev,flowfarm]"

- name: Pre-instantiate Julia environment
run: |
julia -e "using Pkg; Pkg.Registry.add(\"General\"); Pkg.Registry.update()"
julia --project=ard/flowfarm/julia_env -e "using Pkg; Pkg.resolve(); Pkg.instantiate()"

- name: Run FLOWFarm integration tests
run: |
pytest -m julia test/flowfarm/integration \
--cov=ard \
--cov-report=term-missing \
-v
2 changes: 1 addition & 1 deletion .github/workflows/python-tests-consolidated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
pip install .[dev]
- name: Run unit tests with coverage
run: |
pytest --cov=ard --cov-fail-under=80 test/ard/unit
pytest --cov=ard --cov-fail-under=80 test/ard/unit test/flowfarm/unit -m "not julia"
Comment thread
BTV25 marked this conversation as resolved.
Outdated

test-system:
name: Run system tests
Expand Down
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@

### ARD DEVELOPMENT IGNORES
### ARD DEVELOPMENT IGNORES

.vscode
case_files
ard_prob_out

### JULIA
# Manifest.toml is user-generated (depends on local Julia version).
# Project.toml is committed; Manifest.toml is rebuilt automatically on first use.
ard/flowfarm/julia_env/Manifest.toml

### MACOS DEFAULT IGNORES

.DS_Store
Expand Down
1 change: 1 addition & 0 deletions ard/farm_aero/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from . import floris
from . import flowfarm
from . import placeholder
from . import templates
Loading