Skip to content

Commit 2750573

Browse files
committed
Add GHA tooling
1 parent 637595d commit 2750573

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/unittests.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Python package
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
python-version: [ "3.8", "3.9", "3.10", "3.11"]
11+
dependencies:
12+
- "flask==0.10.1 werkzeug==0.16.1" # pin werkzeug for Flask 10, 10.1 since Flask does not pin it itself.
13+
- "flask==0.10 werkzeug==0.16.1"
14+
- "flask==1.0"
15+
- "flask==1.1"
16+
- "flask==2.3.2"
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
# You can test your matrix by printing the current Python version
24+
- name: Install deps
25+
run: pip install -U setuptools pep8 coverage docutils pygments packaging ${{ matrix.dependencies }}
26+
- name: Run tests
27+
run: |
28+
coverage erase
29+
python setup.py clean build install
30+
nosetests --with-coverage --cover-package=flask_cors

0 commit comments

Comments
 (0)