Skip to content

Commit 1298a02

Browse files
committed
use custom pypyr-in-tox action
1 parent fd44966 commit 1298a02

File tree

3 files changed

+12
-34
lines changed

3 files changed

+12
-34
lines changed

.github/workflows/lint-test-build.yaml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: lint-test-build
33
on:
44
push:
55
branches:
6-
- '**'
6+
- master
77
tags-ignore:
88
- '**'
99
pull_request:
@@ -21,15 +21,8 @@ jobs:
2121

2222
steps:
2323
- uses: actions/checkout@v2
24-
- name: Set up Python ${{ matrix.python-version }}
25-
uses: actions/setup-python@v2
24+
- name: Run build pipeline for linting, testing & packaging verification.
25+
uses: pypyr/run-in-tox-action@master
2626
with:
27-
python-version: ${{ matrix.python-version }}
28-
- name: Display Python version
29-
run: python -c "import sys; print(sys.version)"
30-
- name: Install dependencies
31-
run: |
32-
python -m pip install --upgrade pip
33-
pip install tox
34-
- name: Run build pipeline for linting, tests & packaging integrity checks.
35-
run: tox ops/build package
27+
pipeline: ops/build package
28+
python-version: ${{ matrix.python-version }}

.github/workflows/publish.yaml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,11 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v2
12-
- name: Set up Python
13-
uses: actions/setup-python@v2
14-
with:
15-
python-version: '3.x'
16-
- name: Display Python version
17-
run: python -c "import sys; print(sys.version)"
18-
- name: Install dependencies
19-
run: |
20-
python -m pip install --upgrade pip
21-
pip install tox
2212
- name: Run publish pipeline
13+
uses: pypyr/run-in-tox-action@master
14+
with:
15+
pipeline: ops/build package publish
16+
python-version: ${{ matrix.python-version }}
2317
env:
2418
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
2519
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
26-
run: tox ops/build package publish

.github/workflows/tag-release.yaml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,7 @@ jobs:
1818
with:
1919
# pull all tags also
2020
fetch-depth: 0
21-
- name: Set up Python
22-
uses: actions/setup-python@v2
21+
- name: run tag pipeline.
22+
uses: pypyr/run-in-tox-action@master
2323
with:
24-
python-version: '3.x'
25-
- name: Display Python version
26-
run: python -c "import sys; print(sys.version)"
27-
- name: Install dependencies
28-
run: |
29-
python -m pip install --upgrade pip
30-
pip install tox
31-
- name: run tag pipeline
32-
run: tox ops/tag
24+
pipeline: tox ops/tag

0 commit comments

Comments
 (0)