forked from CogStack/MedCATservice
-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·52 lines (37 loc) · 1.14 KB
/
run_tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Run tests
on:
push:
branches: [ devel, master ]
pull_request:
branches: [ devel, master ]
release:
types: [published]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
env:
working-directory: ./
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: checkout repo
uses: actions/checkout@v2
- name: Install Python 3
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install dependencies
run: |
sudo apt-get install -y isort flake8
python -m pip install --upgrade pip
python -m pip install virtualenv setuptools
python -m pip install isort flake8 mypy stubs types-Flask types-simplejson types-setuptools
python -m pip install -r medcat_service/requirements.txt
- name: Check linting and types
run: |
isort .
flake8 .
mypy . --ignore-missing-imports
- name: Run tests
run: bash run_tests.sh