8000 Add github workflow for CI · flask-api/flask-api@873ea1b · GitHub
[go: up one dir, main page]

Skip to content

Commit 873ea1b

Browse files
coddersauvipy
authored andcommitted
Add github workflow for CI
1 parent 6dcb9dd commit 873ea1b

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/tests.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Tests
2+
3+
#############################
4+
# Start the job on all push #
5+
#############################
6+
on:
7+
push:
8+
branches:
9+
- 'main'
10+
pull_request:
11+
12+
jobs:
13+
tests:
14+
name: Python ${{ matrix.python-version }}
15+
runs-on: ubuntu-xenial
16+
environment: test
17+
18+
strategy:
19+
matrix:
20+
python-version: ["3.7", "3.8"]
21+
22+
steps:
23+
- uses: actions/checkout@v3
24+
- name: Set up Python ${{ matrix.python-version }}
25+
uses: actions/setup-python@v4
26+
with:
27+
python-version: ${{ matrix.python-version }}
28+
- uses: browser-actions/setup-chrome@latest
29+
with:
30+
chrome-version: stable
31+
- name: Install dependencies
32+
run: |
33+
pip install --upgrade pip
34+
pip install pipenv
35+
python --version; pip --version; pipenv --version
36+
pipenv run pip install flask=2.3.2
37+
- name: Run tests
38+
run: |
39+
make check
40+
make test
41+
env:
42+
RANDOM_SEED: 0

0 commit comments

Comments
 (0)
0