-
Notifications
You must be signed in to change notification settings - Fork 4
35 lines (33 loc) · 974 Bytes
/
ci.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
name: 'CI'
on:
push:
branches: [master]
pull_request:
jobs:
flake8:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: set up python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: install dependencies
run: python -m pip install flake8
- name: lint with flake8
run: flake8 --statistics shentry.py
run-tests:
runs-on: ubuntu-20.04
strategy:
matrix:
pythonversion: ['2.7', '3.5', '3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v3
- name: set up python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.pythonversion }}
- name: install dependencies
run: 'python -m pip install -r requirements-tests.txt -e .'
- name: test with pytest
run: py.test --cov-fail-under=50 --cov=shentry --cov-report=term-missing tests/