-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (36 loc) · 911 Bytes
/
main.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
name: Unit tests for Basic Class
on:
push:
branches:
- develop
- main
pull_request:
branches:
- develop
- main
defaults:
run:
shell: bash
working-directory: .
jobs:
test:
name: 'Run unit tests'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
id: python
uses: actions/setup-python@v4
with:
python-version: ${{ env.DEFAULT_PYTHON }}
- name: Upgrade pip
run: python -m pip install --upgrade pip setuptools wheel
- name: Upgrade pyOpenSSl
run: pip install pyOpenSSL --upgrade
- name: Install dependencies
run: pip install -r requirements.txt
- name: List directory contents
run: ls -la
- name: Run tests
run: python -m pytest ./tests