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
35 changes: 0 additions & 35 deletions .github/workflows/medcat-trainer-v1_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,44 +11,9 @@ defaults:
working-directory: ./v1/medcat-trainer

jobs:
# Test and build client library
test-client:
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests pytest build

- name: Install client package in development mode
run: |
cd client
pip install -e .

- name: Run client tests
run: |
cd client
python -m pytest tests/ -v

- name: Build client package
run: |
cd client
python -m build

# Build and test webapp container
build-and-push:
runs-on: ubuntu-latest
needs: test-client
steps:
- name: Checkout main
uses: actions/checkout@v4
Expand Down
41 changes: 0 additions & 41 deletions .github/workflows/medcat-trainer-v1_qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,47 +9,6 @@ defaults:
working-directory: ./v1/medcat-trainer

jobs:
# Test and build client library
test-client:
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v4
with:
ref: 'main'

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests pytest build

- name: Install client package in development mode
run: |
cd client
pip install -e .

- name: Run client tests
run: |
cd client
python -m pytest tests/ -v

- name: Build client package
run: |
cd client
python -m build

# - name: Publish dev distribution to Test PyPI
# uses: pypa/gh-action-pypi-publish@v1.4.2
# with:
# password: ${{ secrets.MEDCAT_TRAINER_TEST_PYPI_API_TOKEN }}
# repository_url: https://test.pypi.org/legacy/
# packages_dir: v1/medcat-trainer/client/dist

# Build and test webapp container
build-and-push:
runs-on: ubuntu-latest
Expand Down
49 changes: 1 addition & 48 deletions .github/workflows/medcat-trainer-v1_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,63 +3,16 @@ name: medcat-trainer-v1 release-build
on:
push:
tags:
- 'medcat-trainer/v1.*.*'
- 'medcat-trainer/v1.*.*'

defaults:
run:
working-directory: ./v1/medcat-trainer

jobs:
# Test, build and publish client library
test-and-publish-client:
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v4
with:
ref: "main"

- name: Release Tag
# If GITHUB_REF=refs/tags/medcat-trainer/v0.1.2, this returns v0.1.2. Note it's including the "v" though it probably shouldnt
run: echo "RELEASE_VERSION=${GITHUB_REF##refs/*/}" >> $GITHUB_ENV

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests pytest build twine

- name: Install client package in development mode
run: |
cd client
pip install -e .

- name: Run client tests
run: |
cd client
python -m pytest tests/ -v

- name: Build client package
run: |
cd client
python -m build

- name: Publish production distribution to PyPI
if: startsWith(github.ref, 'refs/tags') && ! github.event.release.prerelease
uses: pypa/gh-action-pypi-publish@v1.4.2
with:
# TODO CU-869a25n7e Use Trusted Platform Publisher based PyPI release
password: ${{ secrets.PYPI_API_TOKEN }}
packages_dir: v1/medcat-trainer/client/dist

# Build and test webapp container
build-and-push:
runs-on: ubuntu-latest
needs: test-and-publish-client
steps:
- name: Checkout main
uses: actions/checkout@v4
Expand Down
88 changes: 0 additions & 88 deletions v1/medcat-trainer/client/README.md

This file was deleted.

Empty file.
Loading