Skip to content

Commit 02f0ce0

Browse files
author
Phrase
committed
1 parent 321118c commit 02f0ce0

File tree

1 file changed

+0
-38
lines changed

1 file changed

+0
-38
lines changed

.github/workflows/python.yml

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +0,0 @@
1-
# NOTE: This file is auto generated by OpenAPI Generator.
2-
# URL: https://openapi-generator.tech
3-
#
4-
# ref: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
5-
6-
name: phrase_api Python package
7-
8-
on: [push, pull_request]
9-
10-
jobs:
11-
build:
12-
13-
runs-on: ubuntu-latest
14-
strategy:
15-
matrix:
16-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
17-
18-
steps:
19-
- uses: actions/checkout@v3
20-
- name: Set up Python ${{ matrix.python-version }}
21-
uses: actions/setup-python@v4
22-
with:
23-
python-version: ${{ matrix.python-version }}
24-
- name: Install dependencies
25-
run: |
26-
python -m pip install --upgrade pip
27-
pip install flake8 pytest
28-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
29-
if [ -f test-requirements.txt ]; then pip install -r test-requirements.txt; fi
30-
- name: Lint with flake8
31-
run: |
32-
# stop the build if there are Python syntax errors or undefined names
33-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
34-
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
35-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
36-
- name: Test with pytest
37-
run: |
38-
pytest

0 commit comments

Comments
 (0)