Skip to content

Commit 91498ae

Browse files
committed
fixed workflow?
1 parent 5ccfcb4 commit 91498ae

File tree

2 files changed

+40
-3
lines changed

2 files changed

+40
-3
lines changed

.github/workflows/main.yml renamed to .github/workflows/deploy.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,20 @@ on:
55
- 'README.md'
66
tags:
77
- '*'
8+
workflow_dispatch:
9+
inputs:
10+
test:
11+
description: "Testing pipeline"
12+
required: true
13+
default: "test.yml"
14+
815

916
jobs:
1017
build-n-publish:
1118
name: Publish Python distribution
1219
runs-on: ubuntu-18.04
13-
strategy:
14-
matrix:
15-
python-version: [3.6, 3.7, 3.8, 3.9]
20+
with:
21+
python-version: 3.9
1622
steps:
1723
- uses: actions/checkout@master
1824
- name: Setup Python 3.6

.github/workflows/test.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish Python distribution to PyPI and TestPyPI
2+
on:
3+
push:
4+
paths-ignore:
5+
- 'README.md'
6+
7+
jobs:
8+
build-n-publish:
9+
name: Publish Python distribution
10+
runs-on: ubuntu-18.04
11+
strategy:
12+
matrix:
13+
python-version: [3.6, 3.7, 3.8, 3.9]
14+
steps:
15+
- uses: actions/checkout@master
16+
- name: Setup Python 3.6
17+
uses: actions/setup-python@v1
18+
with:
19+
python-version: ${{ matrix.python-version }}
20+
- name: Install dependencies
21+
run: |
22+
python -m pip install --upgrade pip
23+
- name: Lint with flake8
24+
run: |
25+
pip install flake8
26+
flake8 . --max-line-length=1000
27+
- name: Test with pytest
28+
run: |
29+
pip install pytest
30+
pip install pytest-cov
31+
pytest ./tests/tests.py --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html

0 commit comments

Comments
 (0)