-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (46 loc) · 1.34 KB
/
python.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
44
45
46
47
48
49
50
name: Python package
on:
push:
branches:
- 'main'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7"]
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies and package
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install pylint coverage wheel
- name: Lint with pylint
run: |
pylint bdld --exit-zero
- name: Test and display coverage
run: |
coverage run -m unittest discover -b
coverage xml
#- name: Create Orphan Branch
#uses: action-badges/create-orphan-branch@0.1.0
#with:
#branch-name: badges
#- name: Make Coverage Badge
#uses: action-badges/cobertura-coverage-xml-badges@0.2.1
#with:
#coverage-file-name: ./coverage.xml
#file-name: coverage.svg
#badge-branch: badges
#github-token: '${{ secrets.GITHUB_TOKEN }}'
- name: build package
run: |
python setup.py sdist bdist_wheel