Skip to content

Commit 9034134

Browse files
committed
CI: Add a pull request workflow
Runs tox pep8 and releasenotes environments.
1 parent 8a0cbe1 commit 9034134

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/pull-request.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: Pull request
3+
'on':
4+
pull_request:
5+
jobs:
6+
tox:
7+
runs-on: ubuntu-20.04
8+
strategy:
9+
matrix:
10+
include:
11+
- environment: pep8
12+
python-version: 3.6
13+
- environment: releasenotes
14+
python-version: 3.6
15+
name: Tox ${{ matrix.environment }} with Python ${{ matrix.python-version }}
16+
steps:
17+
- name: Github Checkout 🛎u
18+
uses: actions/checkout@v3
19+
with:
20+
fetch-depth: 0
21+
- name: Setup Python ${{ matrix.python-version }} 🐍
22+
uses: actions/setup-python@v3
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
- name: Install Tox 📦
26+
run: pip install tox
27+
- name: Run Tox ${{ matrix.environment }} 🧪
28+
run: tox -e ${{ matrix.environment }}

0 commit comments

Comments
 (0)