8000 ci: split unit and lint workflows (#86) · sesi/functions-framework-python@8fd2a6b · GitHub
[go: up one dir, main page]

Skip to content

Commit 8fd2a6b

Browse files
10000
authored
ci: split unit and lint workflows (GoogleCloudPlatform#86)
* ci: split workflows Signed-off-by: Grant Timmerman <timmerman+devrel@google.com> * ci: add tox to unit workflow Signed-off-by: Grant Timmerman <timmerman+devrel@google.com>
1 parent f62facc commit 8fd2a6b

File tree

3 files changed

+33
-35
lines changed

3 files changed

+33
-35
lines changed

.github/workflows/lint.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Python Lint CI
2+
on: [push, pull_request]
3+
jobs:
4+
lint:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v2
8+
- name: Setup Python
9+
uses: actions/setup-python@v1
10+
- name: Install tox
11+
run: python -m pip install tox
12+
- name: Lint
13+
run: python -m tox -e lint

.github/workflows/main.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/workflows/unit.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Python Unit CI
2+
on: [push, pull_request]
3+
jobs:
4+
test:
5+
strategy:
6+
matrix:
7+
python: [3.6, 3.7, 3.8]
8+
platform: [ubuntu-latest, macos-latest, windows-latest]
9+
runs-on: ${{ matrix.platform }}
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v2
13+
- name: Use Python ${{ matrix.python }}
14+
uses: actions/setup-python@v1
15+
with:
16+
python-version: ${{ matrix.python }}
17+
- name: Install tox
18+
run: python -m pip install tox
19+
- name: Test
20+
run: python -m tox -e py-${{ matrix.platform }}

0 commit comments

Comments
 (0)
0