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
27 changes: 1 addition & 26 deletions .github/workflows/medcat-trainer_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,35 +45,10 @@ jobs:
cd client
python -m build


test-frontend:
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v5

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install dependencies
run: |
cd webapp/frontend
npm ci

- name: Run frontend tests
run: |
cd webapp/frontend
npm run test:unit


# Build and test webapp container
build-and-push:
runs-on: ubuntu-latest
needs:
- test-client
- test-frontend
needs: test-client
steps:
- name: Checkout main
uses: actions/checkout@v5
Expand Down
26 changes: 1 addition & 25 deletions .github/workflows/medcat-trainer_qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: medcat-trainer qa-build
on:
push:
branches: [ main ]
workflow_dispatch: #TODO Remove after testing

permissions:
id-token: write
Expand Down Expand Up @@ -56,33 +55,10 @@ jobs:
repository_url: https://test.pypi.org/legacy/
packages_dir: medcat-trainer/client/dist

test-frontend:
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v5

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install dependencies
run: |
cd webapp/frontend
npm ci

- name: Run frontend tests
run: |
cd webapp/frontend
npm run test:unit

# Build and test webapp container
build-and-push:
runs-on: ubuntu-latest
needs:
- test-client
- test-frontend
needs: test-client
steps:
- name: Checkout main
uses: actions/checkout@v5
Expand Down
Loading