Skip to content

Commit c0d2786

Browse files
authored
Upload coverage only for python 3.8 on ubuntu-latest (#459)
1 parent 87e0d56 commit c0d2786

File tree

1 file changed

+83
-5
lines changed

1 file changed

+83
-5
lines changed

.github/workflows/ci.yml

Lines changed: 83 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,15 @@ on:
77
branches: [master]
88

99
jobs:
10-
test:
10+
test-ubuntu-py38:
1111
runs-on: ${{matrix.os}}
1212
timeout-minutes: 10
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
os: [macos-latest, ubuntu-latest, windows-latest]
16+
os: [ubuntu-latest]
1717
python-version:
18-
- "3.7"
1918
- "3.8"
20-
- "3.9"
21-
- "3.10"
2219

2320
steps:
2421
- uses: actions/checkout@v2
@@ -61,3 +58,84 @@ jobs:
6158
- name: Build Documentation
6259
run: |
6360
sphinx-build -b html docs/source/ docs/build/html
61+
62+
test-ubuntu-py39-py310:
63+
runs-on: ${{matrix.os}}
64+
timeout-minutes: 10
65+
strategy:
66+
fail-fast: false
67+
matrix:
68+
os: [ubuntu-latest]
69+
python-version:
70+
- "3.9"
71+
- "3.10"
72+
73+
steps:
74+
- uses: actions/checkout@v2
75+
76+
- name: Set up Python ${{ matrix.python-version }}
77+
uses: actions/setup-python@v2
78+
with:
79+
python-version: ${{ matrix.python-version }}
80+
81+
- name: Upgrade pip version
82+
run: |
83+
python -m pip install --upgrade pip
84+
85+
- name: Install requirements
86+
run: |
87+
pip install -r requirements.txt
88+
pip install -r docs/requirements.txt
89+
90+
- name: Build package
91+
run: |
92+
python -m pip install .
93+
94+
- name: Run tests
95+
run: |
96+
python -m pytest --doctest-modules --cov=./ --cov-report=xml -s
97+
98+
- name: Build Documentation
99+
run: |
100+
sphinx-build -b html docs/source/ docs/build/html
101+
102+
test-macos-windows:
103+
runs-on: ${{matrix.os}}
104+
timeout-minutes: 10
105+
strategy:
106+
fail-fast: false
107+
matrix:
108+
os: [macos-latest, windows-latest]
109+
python-version:
110+
- "3.8"
111+
- "3.9"
112+
- "3.10"
113+
114+
steps:
115+
- uses: actions/checkout@v2
116+
117+
- name: Set up Python ${{ matrix.python-version }}
118+
uses: actions/setup-python@v2
119+
with:
120+
python-version: ${{ matrix.python-version }}
121+
122+
- name: Upgrade pip version
123+
run: |
124+
python -m pip install --upgrade pip
125+
126+
- name: Install requirements
127+
run: |
128+
pip install -r requirements.txt
129+
pip install -r docs/requirements.txt
130+
131+
- name: Build package
132+
run: |
133+
python -m pip install .
134+
135+
- name: Run tests
136+
run: |
137+
python -m pytest --doctest-modules --cov=./ --cov-report=xml -s
138+
139+
- name: Build Documentation
140+
run: |
141+
sphinx-build -b html docs/source/ docs/build/html

0 commit comments

Comments
 (0)