Spaces:
Running
Running
build on multi version
Browse files- .github/workflows/ci-build.yml +22 -19
.github/workflows/ci-build.yml
CHANGED
@@ -10,27 +10,30 @@ concurrency:
|
|
10 |
jobs:
|
11 |
build:
|
12 |
runs-on: ubuntu-latest
|
|
|
|
|
|
|
13 |
|
14 |
steps:
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
# - name: Test with pytest
|
35 |
# run: |
|
36 |
# pytest
|
|
|
10 |
jobs:
|
11 |
build:
|
12 |
runs-on: ubuntu-latest
|
13 |
+
strategy:
|
14 |
+
matrix:
|
15 |
+
python-version: [ 3.8, 3.9, '3.10', '3.11' ]
|
16 |
|
17 |
steps:
|
18 |
+
- uses: actions/checkout@v2
|
19 |
+
- name: Set up Python ${{ matrix.python-version }}
|
20 |
+
uses: actions/setup-python@v4
|
21 |
+
with:
|
22 |
+
python-version: ${{ matrix.python-version }}
|
23 |
+
cache: 'pip'
|
24 |
+
- name: Cleanup more disk space
|
25 |
+
run: sudo rm -rf /usr/share/dotnet && sudo rm -rf /opt/ghc && sudo rm -rf "/usr/local/share/boost" && sudo rm -rf "$AGENT_TOOLSDIRECTORY"
|
26 |
+
- name: Install dependencies
|
27 |
+
run: |
|
28 |
+
python -m pip install --upgrade pip
|
29 |
+
pip install --upgrade flake8 pytest pycodestyle
|
30 |
+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
31 |
+
- name: Lint with flake8
|
32 |
+
run: |
|
33 |
+
# stop the build if there are Python syntax errors or undefined names
|
34 |
+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
35 |
+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
36 |
+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
37 |
# - name: Test with pytest
|
38 |
# run: |
|
39 |
# pytest
|