Skip to content

Commit 6de112f

Browse files
committed
ci: modernize a bit
- Use newer github action versions - Build against latest python 3.x version - Pin ubuntu-20.04 so we can get python 3.6 testing for rhel/centos8 - Reduce the testing matrix a bit - Drop redundant codecov params Signed-off-by: Cole Robinson <crobinso@redhat.com>
1 parent a7c3240 commit 6de112f

1 file changed

Lines changed: 12 additions & 11 deletions

File tree

.github/workflows/build.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,19 @@ on: [push, pull_request]
88

99
jobs:
1010
build:
11-
runs-on: ubuntu-latest
11+
# We stick with 20.04 to get access to python 3.6
12+
# https://github.com/actions/setup-python/issues/544
13+
runs-on: ubuntu-20.04
1214
strategy:
1315
matrix:
14-
python-version: [3.5, 3.6, 3.7, 3.8]
16+
# python 3.6 is for rhel/centos8 compat
17+
python-version: ["3.6", "3.x"]
1518

1619
steps:
17-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v3
1821

1922
- name: Set up Python ${{ matrix.python-version }}
20-
uses: actions/setup-python@v2
23+
uses: actions/setup-python@v4
2124
with:
2225
python-version: ${{ matrix.python-version }}
2326

@@ -39,23 +42,21 @@ jobs:
3942
pytest --cov --cov-report=xml
4043
4144
- name: Upload coverage to Codecov
42-
uses: codecov/codecov-action@v1
43-
with:
44-
file: ./coverage.xml
45-
flags: unittests
45+
uses: codecov/codecov-action@v3
46+
4647

4748
# Build and install on Windows
4849
windows:
4950
runs-on: windows-latest
5051
strategy:
5152
matrix:
52-
python-version: [3.8]
53+
python-version: ["3.x"]
5354

5455
steps:
55-
- uses: actions/checkout@v2
56+
- uses: actions/checkout@v3
5657

5758
- name: Set up Python ${{ matrix.python-version }}
58-
uses: actions/setup-python@v2
59+
uses: actions/setup-python@v4
5960
with:
6061
python-version: ${{ matrix.python-version }}
6162

0 commit comments

Comments
 (0)