-
Notifications
You must be signed in to change notification settings - Fork 148
57 lines (55 loc) · 1.58 KB
/
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
50
51
52
53
54
55
56
57
name: Run Python Tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Python 3
uses: actions/setup-python@v3
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install python-dateutil backoff monotonic
pip install --user .
sudo pip install pylint==3.3.1 flake8 mock==3.0.5 python-dateutil aiohttp==3.9.1
- name: Run tests
run: python -m unittest discover -s segment
# snyk:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# #- attach_workspace: { at: . }
# - run: pip3 install pipreqs
# - run: pip3 install --user appdirs
# - run: pipreqs .
# - run: pip3 install --user -r requirements.txt
# - run: curl -sL https://raw.githubusercontent.com/segmentio/snyk_helpers/master/initialization/snyk.sh | sh#
# test:
# #needs: ['coding-standard', 'lint']
# runs-on: ubuntu-latest
# strategy:
# matrix:
# python: ['3.9', '3.10', '3.11']
# coverage: [false]
# experimental: [false]
# include:
# # Run code coverage.
# - python: '3.9'
# coverage: true
# experimental: false
# - python: '3.10'
# coverage: true
# experimental: false
# - python: '3.11'
# coverage: true
# experimental: false