Skip to content
Open
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
36 changes: 22 additions & 14 deletions .github/workflows/_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ on:
default: true

jobs:
test-discojs:
discojs:
if: inputs.discojs
runs-on: ubuntu-latest
steps:
Expand All @@ -36,7 +36,7 @@ jobs:
with: { name: all-builds }
- run: pnpm exec vitest --run --project=discojs

test-discojs-node:
discojs-node:
if: inputs.discojs_node
runs-on: ubuntu-latest
steps:
Expand All @@ -47,7 +47,7 @@ jobs:
with: { name: all-builds }
- run: pnpm exec vitest --run --project=discojs-node

test-discojs-web:
discojs-web:
if: inputs.discojs_web
runs-on: ubuntu-latest
steps:
Expand All @@ -58,7 +58,7 @@ jobs:
with: { name: all-builds }
- run: pnpm exec vitest --run --project=discojs-web

test-server:
server:
if: inputs.server
runs-on: ubuntu-latest
steps:
Expand All @@ -69,7 +69,7 @@ jobs:
with: { name: all-builds }
- run: pnpm exec vitest --run --project=server

test-webapp:
webapp-unit:
if: inputs.webapp
runs-on: ubuntu-latest
steps:
Expand All @@ -80,7 +80,7 @@ jobs:
with: { name: all-builds }
- run: pnpm -F webapp run test:unit

test-e2e:
webapp-e2e:
if: inputs.webapp
runs-on: ubuntu-latest
steps:
Expand All @@ -95,15 +95,19 @@ jobs:
install: false
start: pnpm exec vite --mode test --port 1351

test-local-training:
webapp-local:
if: inputs.webapp
name: local training (${{ matrix.task }})
name: webapp-local-${{ matrix.slug }}
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
task: [titanic, lus_covid]
include:
- task: titanic
slug: titanic
- task: lus_covid
slug: lus-covid
steps:
- uses: actions/checkout@v7
- uses: ./.github/actions/setup-node
Expand All @@ -125,15 +129,19 @@ jobs:
path: webapp/cypress/screenshots
if-no-files-found: ignore

test-e2e-federated:
webapp-federated:
if: inputs.webapp
name: federated webapp (${{ matrix.task }})
name: webapp-federated-${{ matrix.slug }}
runs-on: ubuntu-latest
timeout-minutes: 12
strategy:
fail-fast: false
matrix:
task: [titanic, lus_covid]
include:
- task: titanic
slug: titanic
- task: lus_covid
slug: lus-covid
steps:
- uses: actions/checkout@v7
- uses: ./.github/actions/setup-node
Expand All @@ -160,7 +168,7 @@ jobs:
path: webapp/cypress/screenshots
if-no-files-found: ignore

test-cli:
cli:
if: inputs.cli
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -188,7 +196,7 @@ jobs:
done
pnpm -F cli start -t cifar10 -u 3 -e 1 -r 1 -i ci-cifar10

test-docs-examples:
docs-examples:
if: inputs.docs_examples
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ and stops Vite itself; port 1351 must be available.

Federated training tests run in separate CI jobs for Titanic and LUS COVID.
Each job starts a real server and a Node participant configured for its task;
see `test-e2e-federated` in `.github/workflows/_test.yml` for the setup.
see `webapp-federated` in `.github/workflows/_test.yml` for the setup.

#### Cypress and Github Actions

Expand Down
Loading