Skip to content

Commit 5fa39f0

Browse files
build: Setup Github actions (#1)
* build: medcat-v2 github actions * build: Medcat-service actions * Add License and initial Readme. build: Add v2 tutorials actions * Rename github actions * Disable failing service build * Rename files * build: Move dev container
1 parent 8acde6b commit 5fa39f0

File tree

9 files changed

+131
-7
lines changed

9 files changed

+131
-7
lines changed
File renamed without changes.

medcat-service/.github/workflows/docker.yml renamed to .github/workflows/medcat-service_docker.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Docker
1+
name: medcat-service - Build Images
22

33
on:
44
push:
@@ -11,9 +11,14 @@ on:
1111

1212
# Allows you to run this workflow manually from the Actions tab
1313
workflow_dispatch:
14-
14+
defaults:
15+
run:
16+
working-directory: ./medcat-service
1517
jobs:
18+
1619
build:
20+
# DIsable the build temporarily
21+
if: false
1722
runs-on: ubuntu-latest
1823
outputs:
1924
image_version: ${{ steps.meta.outputs.version }}

medcat-service/.github/workflows/run_tests.yml renamed to .github/workflows/medcat-service_run-tests.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Run tests
1+
name: medcat-service - Test
22

33
on:
44

@@ -13,6 +13,10 @@ on:
1313
# Allows you to run this workflow manually from the Actions tab
1414
workflow_dispatch:
1515

16+
defaults:
17+
run:
18+
working-directory: ./medcat-service
19+
1620
jobs:
1721

1822
build:

medcat-v2-tutorials/.github/workflows/main.yml renamed to .github/workflows/medcat-v2-tutorials_main.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1-
name: build
1+
name: medcat-v2-tutorials - Test
22

33
on:
44
push:
55
branches: [ main ]
66
pull_request:
77
branches: [ main ]
88

9+
defaults:
10+
run:
11+
working-directory: ./medcat-v2-tutorials
12+
913
jobs:
1014
basic-and-meta:
1115
runs-on: ubuntu-latest
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
name: build
1+
name: medcat-v2 - Test
22

33
on:
44
push:
55
branches: [ main ]
66
pull_request:
77
branches: [ main ]
8-
8+
defaults:
9+
run:
10+
working-directory: ./medcat-v2
911
jobs:
1012
build:
1113

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release
1+
name: medcat-v2 - Build Python Package
22

33
on:
44
push:
@@ -8,6 +8,10 @@ on:
88
permissions:
99
contents: write
1010

11+
defaults:
12+
run:
13+
working-directory: ./medcat-v2
14+
1115
jobs:
1216
build:
1317
name: Build and release

LICENSE

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
Elastic License 2.0
2+
3+
URL: https://www.elastic.co/licensing/elastic-license
4+
5+
## Acceptance
6+
7+
By using the software, you agree to all of the terms and conditions below.
8+
9+
## Copyright License
10+
11+
The licensor grants you a non-exclusive, royalty-free, worldwide,
12+
non-sublicensable, non-transferable license to use, copy, distribute, make
13+
available, and prepare derivative works of the software, in each case subject to
14+
the limitations and conditions below.
15+
16+
## Limitations
17+
18+
You may not provide the software to third parties as a hosted or managed
19+
service, where the service provides users with access to any substantial set of
20+
the features or functionality of the software.
21+
22+
You may not move, change, disable, or circumvent the license key functionality
23+
in the software, and you may not remove or obscure any functionality in the
24+
software that is protected by the license key.
25+
26+
You may not alter, remove, or obscure any licensing, copyright, or other notices
27+
of the licensor in the software. Any use of the licensor’s trademarks is subject
28+
to applicable law.
29+
30+
## Patents
31+
32+
The licensor grants you a license, under any patent claims the licensor can
33+
license, or becomes able to license, to make, have made, use, sell, offer for
34+
sale, import and have imported the software, in each case subject to the
35+
limitations and conditions in this license. This license does not cover any
36+
patent claims that you cause to be infringed by modifications or additions to
37+
the software. If you or your company make any written claim that the software
38+
infringes or contributes to infringement of any patent, your patent license for
39+
the software granted under these terms ends immediately. If your company makes
40+
such a claim, your patent license ends immediately for work on behalf of your
41+
company.
42+
43+
## Notices
44+
45+
You must ensure that anyone who gets a copy of any part of the software from you
46+
also gets a copy of these terms.
47+
48+
If you modify the software, you must include in any modified copies of the
49+
software prominent notices stating that you have modified the software.
50+
51+
## No Other Rights
52+
53+
These terms do not imply any licenses other than those expressly granted in
54+
these terms.
55+
56+
## Termination
57+
58+
If you use the software in violation of these terms, such use is not licensed,
59+
and your licenses will automatically terminate. If the licensor provides you
60+
with a notice of your violation, and you cease all violation of this license no
61+
later than 30 days after you receive that notice, your licenses will be
62+
reinstated retroactively. However, if you violate these terms after such
63+
reinstatement, any additional violation of these terms will cause your licenses
64+
to terminate automatically and permanently.
65+
66+
## No Liability
67+
68+
*As far as the law allows, the software comes as is, without any warranty or
69+
condition, and the licensor will not be liable to you for any damages arising
70+
out of these terms or the use or nature of the software, under any kind of
71+
legal claim.*
72+
73+
## Definitions
74+
75+
The **licensor** is the entity offering these terms, and the **software** is the
76+
software the licensor makes available under these terms, including any portion
77+
of it.
78+
79+
**you** refers to the individual or entity agreeing to these terms.
80+
81+
**your company** is any legal entity, sole proprietorship, or other kind of
82+
organization that you work for, plus all organizations that have control over,
83+
are under the control of, or are under common control with that
84+
organization. **control** means ownership of substantially all the assets of an
85+
entity, or the power to direct its management and policies by vote, contract, or
86+
otherwise. Control can be direct or indirect.
87+
88+
**your licenses** are all the licenses granted to you for the software under
89+
these terms.
90+
91+
**use** means anything you do with the software requiring one of your licenses.
92+
93+
**trademark** means trademarks, service marks, and similar rights.

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Cogstack NLP
2+
3+
[![Build Status](https://github.com/CogStack/cogstack-nlp/actions/workflows/medcat-v2-main.yml/badge.svg?branch=main)](https://github.com/CogStack/MedCAT2/actions/workflows/main.yml?query=branch%3main)
4+
[![Documentation Status](https://readthedocs.org/projects/medcat2/badge/?version=latest)](https://medcat2.readthedocs.io/en/latest/?badge=latest)
5+
[![Latest release](https://img.shields.io/github/v/release/CogStack/MedCAT2)](https://github.com/CogStack/MedCAT2/releases/latest)
6+
7+
Cogstack Natural Language Processing is for analysing clinical data using AI to draw insights from text in or documents in an Electronic Health Records.
8+
9+
10+
**Official Docs [here](https://medcat2.readthedocs.io/en/latest/)**
11+
**Discussion Forum [discourse](https://discourse.cogstack.org/)**
12+

0 commit comments

Comments
 (0)