Skip to content

Commit da5da4f

Browse files
Update python-app.yml
1 parent 8aa7566 commit da5da4f

File tree

1 file changed

+83
-86
lines changed

1 file changed

+83
-86
lines changed

.github/workflows/python-app.yml

Lines changed: 83 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -9,48 +9,16 @@ on:
99
pull_request:
1010
branches: [ master ]
1111

12-
jobs:
13-
linux-quick:
14-
runs-on: ubuntu-latest
15-
16-
steps:
17-
- uses: actions/checkout@v2
18-
- name: Set up Python 3.8
19-
uses: actions/setup-python@v2
20-
with:
21-
python-version: 3.8
22-
- name: Install dependencies
23-
run: |
24-
python -m pip install --upgrade pip
25-
pip install pylint pytest pytest-cov codecov
26-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
27-
- name: Install adapt
28-
run: |
29-
pip install -e .
30-
- name: Test with pytest
31-
run: |
32-
pytest --cov=adapt
33-
- name: Upload codecov
34-
run: |
35-
codecov
36-
- name: Lint with pylint
37-
run: |
38-
pylint adapt tests || exit 0
39-
40-
# linux:
41-
12+
# jobs:
13+
# linux-quick:
4214
# runs-on: ubuntu-latest
43-
# strategy:
44-
# max-parallel: 4
45-
# matrix:
46-
# python-version: [3.6, 3.7, 3.8]
47-
15+
4816
# steps:
4917
# - uses: actions/checkout@v2
50-
# - name: Set up Python ${{ matrix.python-version }}
18+
# - name: Set up Python 3.8
5119
# uses: actions/setup-python@v2
5220
# with:
53-
# python-version: ${{ matrix.python-version }}
21+
# python-version: 3.8
5422
# - name: Install dependencies
5523
# run: |
5624
# python -m pip install --upgrade pip
@@ -59,68 +27,97 @@ jobs:
5927
# - name: Install adapt
6028
# run: |
6129
# pip install -e .
62-
# - name: Lint with pylint
63-
# run: |
64-
# pylint adapt tests || exit 0
6530
# - name: Test with pytest
6631
# run: |
6732
# pytest --cov=adapt
6833
# - name: Upload codecov
6934
# run: |
7035
# codecov
36+
# - name: Lint with pylint
37+
# run: |
38+
# pylint adapt tests || exit 0
39+
40+
linux:
41+
42+
runs-on: ubuntu-latest
43+
strategy:
44+
max-parallel: 4
45+
matrix:
46+
python-version: [3.6, 3.7, 3.8]
47+
48+
steps:
49+
- uses: actions/checkout@v2
50+
- name: Set up Python ${{ matrix.python-version }}
51+
uses: actions/setup-python@v2
52+
with:
53+
python-version: ${{ matrix.python-version }}
54+
- name: Install dependencies
55+
run: |
56+
python -m pip install --upgrade pip
57+
pip install pylint pytest pytest-cov codecov
58+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
59+
- name: Install adapt
60+
run: |
61+
pip install -e .
62+
- name: Lint with pylint
63+
run: |
64+
pylint adapt tests || exit 0
65+
- name: Test with pytest
66+
run: |
67+
pytest
7168
7269
73-
# windows:
70+
windows:
7471

75-
# runs-on: windows-2019
76-
# strategy:
77-
# max-parallel: 4
78-
# matrix:
79-
# python-version: [3.6, 3.7, 3.8]
72+
runs-on: windows-2019
73+
strategy:
74+
max-parallel: 4
75+
matrix:
76+
python-version: [3.6, 3.7, 3.8]
8077

81-
# steps:
82-
# - uses: actions/checkout@v2
83-
# - name: Set up Python ${{ matrix.python-version }}
84-
# uses: actions/setup-python@v2
85-
# with:
86-
# python-version: ${{ matrix.python-version }}
87-
# - name: Install dependencies
88-
# run: |
89-
# python -m pip install --upgrade pip
90-
# pip install pytest
91-
# pip install -r requirements.txt
92-
# - name: Install adapt
93-
# run: |
94-
# pip install -e .
95-
# - name: Test with pytest
96-
# run: |
97-
# pytest
78+
steps:
79+
- uses: actions/checkout@v2
80+
- name: Set up Python ${{ matrix.python-version }}
81+
uses: actions/setup-python@v2
82+
with:
83+
python-version: ${{ matrix.python-version }}
84+
- name: Install dependencies
85+
run: |
86+
python -m pip install --upgrade pip
87+
pip install pytest
88+
pip install -r requirements.txt
89+
- name: Install adapt
90+
run: |
91+
pip install -e .
92+
- name: Test with pytest
93+
run: |
94+
pytest
9895
99-
# macos:
96+
macos:
10097

101-
# runs-on: macOS-latest
102-
# strategy:
103-
# max-parallel: 4
104-
# matrix:
105-
# python-version: [3.6, 3.7, 3.8]
98+
runs-on: macOS-latest
99+
strategy:
100+
max-parallel: 4
101+
matrix:
102+
python-version: [3.6, 3.7, 3.8]
106103

107-
# steps:
108-
# - uses: actions/checkout@v2
109-
# - name: Set up Python ${{ matrix.python-version }}
110-
# uses: actions/setup-python@v2
111-
# with:
112-
# python-version: ${{ matrix.python-version }}
113-
# - name: Install dependencies
114-
# run: |
115-
# python -m pip install --upgrade pip
116-
# pip install pytest
117-
# pip install -r requirements.txt
118-
# - name: Install adapt
119-
# run: |
120-
# pip install -e .
121-
# - name: Test with pytest
122-
# run: |
123-
# pytest
104+
steps:
105+
- uses: actions/checkout@v2
106+
- name: Set up Python ${{ matrix.python-version }}
107+
uses: actions/setup-python@v2
108+
with:
109+
python-version: ${{ matrix.python-version }}
110+
- name: Install dependencies
111+
run: |
112+
python -m pip install --upgrade pip
113+
pip install pytest
114+
pip install -r requirements.txt
115+
- name: Install adapt
116+
run: |
117+
pip install -e .
118+
- name: Test with pytest
119+
run: |
120+
pytest
124121
125122
126123

0 commit comments

Comments
 (0)