-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (43 loc) · 1.05 KB
/
release.yaml
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
name: Release CICD
on:
release:
types: [prereleased]
jobs:
build:
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ['3.9','3.10','3.11']
steps:
- uses: actions/checkout@v2
- name: Set up python
uses: actions/setup-python@v2
with:
python-version: ${{matrix.python-version}}
- name: Pip install package
run: |
python -m pip install --upgrade pip
pip install .
- name: Poetry install package
run: |
pip install poetry
poetry install
lint:
needs: build
steps:
- name: pydocstyle
run: poetry run pydocstyle --convention=google
-name: isort
run: poetry run isort . --check
- name: black
run: poetry run black . --check
- name: flake8
run: poetry run flake8 . --ignore E501,F401,W503 --count
continue-on-error: True
test:
needs: build
steps:
- name: Testing
run: |
poetry run pytest