-
Notifications
You must be signed in to change notification settings - Fork 4
50 lines (38 loc) · 1.09 KB
/
pytest.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
name: python-test
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
pytest:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: set up python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install pip
run: sudo python -m pip install --upgrade pip
- name: install python3-pip
run: sudo apt-get install python3-pip
# Install python3-venv
- name: install python3-venv
run: sudo apt-get install python3-venv
# Create virtual env
- name: create virtual env
run: python3 -m venv venv
# Activate virtual env
- name: activate virtual env
run: source venv/bin/activate
- name: install wheel
run: pip3 install wheel
# Install package-name
- name: install package-name
run: pip3 install 'package-name'
# Install backebd/requirements.txt
- name: install requirement
run: pip3 install -r backend/requirements.txt
- name: run test
run: pytest backend