Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit eb8d797

Browse files
committed
Separate tests for Python 2.x and 3.x, add Badges
1 parent 26e03f0 commit eb8d797

File tree

3 files changed

+23
-3
lines changed

3 files changed

+23
-3
lines changed

‎.github/workflows/ver_test.yml renamed to ‎.github/workflows/python2x_build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test on Python 2.x and 3.x
1+
name: Test with Python 2.x
22

33
on: [push]
44

@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
python_ver: [2, 3]
10+
python_ver: [2]
1111
steps:
1212
- uses: actions/checkout@v1
1313
- name: setup python

‎.github/workflows/python3x_build.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Test with Python 3.x
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
python_ver: [3]
11+
steps:
12+
- uses: actions/checkout@v1
13+
- name: setup python
14+
uses: actions/setup-python@v1
15+
with:
16+
python-version: ${{ matrix.python_ver }}
17+
- name: start server
18+
run: python app.py & sleep 10 && curl -X POST http://localhost:1024

‎README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ requests.
1010

1111
No authentication enabled, no SSL. Not Production ready!
1212

13-
Python 2.x, should be easily convertable to Python 3
13+
![](https://github.com/sduff/adding_rest_api_to_python_app/workflows/Test with Python 2.x/badge.svg)
14+
15+
![](https://github.com/sduff/adding_rest_api_to_python_app/workflows/Test with Python 3.x/badge.svg)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /