Skip to content

Commit cedbe25

Browse files
authored
Worfklows update (#15)
1 parent cbcedd8 commit cedbe25

File tree

6 files changed

+13
-33
lines changed

6 files changed

+13
-33
lines changed

.github/workflows/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ They are organised as follows.
66
### Documentation
77

88
The `documentation` workflow triggers on any push to master, builds the documentation and pushes it to the `gh-pages` branch (if the build is successful).
9-
It runs on `ubuntu-latest` and our lowest supported Python version, `Python 3.7`.
9+
It runs on `ubuntu-latest` and `Python 3.9`.
1010

1111
### Testing Suite
1212

1313
Tests are ensured in the `tests` workflow, which triggers on all pushes.
14-
It runs on a matrix of all supported operating systems (ubuntu-18.04, ubuntu-20.04, windows-latest and macos-latest) for all supported Python versions (currently `3.7`, `3.8`, `3.9` and `3.10`).
14+
It runs on a matrix of all supported operating systems (ubuntu-20.04, ubuntu-22.04, windows-latest and macos-latest) for all supported Python versions (currently `3.8`, `3.9`, `3.10` and `3.11`).
1515

1616
### Test Coverage
1717

1818
Test coverage is calculated in the `coverage` wokflow, which triggers on pushes to `master` and any push to a `pull request`.
19-
It runs on `ubuntu-latest` & the lowest supported Python version (`Python 3.7`), and reports the coverage results of the test suite to `CodeClimate`,
19+
It runs on `ubuntu-latest` & `Python 3.9`, and reports the coverage results of the test suite to `CodeClimate`,
2020

2121

2222
### Regular Testing

.github/workflows/coverage.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ jobs:
1616
name: ${{ matrix.os }} / ${{ matrix.python-version }}
1717
runs-on: ${{ matrix.os }}
1818
strategy:
19-
matrix: # only lowest supported Python on latest ubuntu
19+
matrix:
2020
os: [ubuntu-latest]
21-
python-version: [3.7]
21+
python-version: [3.9]
2222

2323
steps:
2424
- uses: actions/checkout@v3
@@ -30,10 +30,6 @@ jobs:
3030
cache: 'pip'
3131
cache-dependency-path: '**/setup.py'
3232

33-
- name: Get full Python version
34-
id: full-python-version
35-
run: echo ::set-output name=version::$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))")
36-
3733
- name: Upgrade pip, setuptools and wheel
3834
run: python -m pip install --upgrade pip setuptools wheel
3935

.github/workflows/cron.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ jobs:
1515
runs-on: ${{ matrix.os }}
1616
strategy:
1717
matrix:
18-
os: [ubuntu-18.04, ubuntu-20.04, macos-latest, windows-latest]
18+
os: [ubuntu-20.04, ubuntu-22.04, macos-latest, windows-latest]
1919
# Make sure to escape 3.10 with quotes so it doesn't get interpreted as float 3.1 by GA's parser
20-
python-version: [3.7, 3.8, 3.9, "3.10", 3.x] # crons should always run latest python hence 3.x
20+
python-version: [3.8, 3.9, "3.10", "3.11", 3.x] # crons should always run latest python hence 3.x
2121

2222
steps:
2323
- uses: actions/checkout@v3
@@ -29,10 +29,6 @@ jobs:
2929
cache: 'pip'
3030
cache-dependency-path: '**/setup.py'
3131

32-
- name: Get full Python version
33-
id: full-python-version
34-
run: echo ::set-output name=version::$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))")
35-
3632
- name: Upgrade pip, setuptools and wheel
3733
run: python -m pip install --upgrade pip setuptools wheel
3834

.github/workflows/documentation.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ jobs:
1515
name: ${{ matrix.os }} / ${{ matrix.python-version }}
1616
runs-on: ${{ matrix.os }}
1717
strategy:
18-
matrix: # only lowest supported Python on latest ubuntu
18+
matrix:
1919
os: [ubuntu-latest]
20-
python-version: [3.7]
20+
python-version: [3.9]
2121

2222
steps:
2323
- uses: actions/checkout@v3
@@ -29,10 +29,6 @@ jobs:
2929
cache: 'pip'
3030
cache-dependency-path: '**/setup.py'
3131

32-
- name: Get full Python version
33-
id: full-python-version
34-
run: echo ::set-output name=version::$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))")
35-
3632
- name: Upgrade pip, setuptools and wheel
3733
run: python -m pip install --upgrade pip setuptools wheel
3834

.github/workflows/publish.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ jobs:
1414
name: ${{ matrix.os }} / ${{ matrix.python-version }}
1515
runs-on: ${{ matrix.os }}
1616
strategy:
17-
matrix: # only lowest supported Python on latest ubuntu
17+
matrix:
1818
os: [ubuntu-latest]
19-
python-version: [3.7]
19+
python-version: [3.9]
2020

2121

2222
steps:
@@ -29,10 +29,6 @@ jobs:
2929
cache: 'pip'
3030
cache-dependency-path: '**/setup.py'
3131

32-
- name: Get full Python version
33-
id: full-python-version
34-
run: echo ::set-output name=version::$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))")
35-
3632
- name: Upgrade pip, setuptools, wheel, build and twine
3733
run: python -m pip install --upgrade pip setuptools wheel build twine
3834

.github/workflows/tests.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ jobs:
1414
runs-on: ${{ matrix.os }}
1515
strategy:
1616
matrix:
17-
os: [ubuntu-18.04, ubuntu-20.04, macos-latest, windows-latest]
17+
os: [ubuntu-20.04, ubuntu-22.04, macos-latest, windows-latest]
1818
# Make sure to escape 3.10 with quotes so it doesn't get interpreted as float 3.1 by GA's parser
19-
python-version: [3.7, 3.8, 3.9, "3.10"]
19+
python-version: [3.8, 3.9, "3.10", "3.11"]
2020

2121
steps:
2222
- uses: actions/checkout@v3
@@ -28,10 +28,6 @@ jobs:
2828
cache: 'pip'
2929
cache-dependency-path: '**/setup.py'
3030

31-
- name: Get full Python version
32-
id: full-python-version
33-
run: echo ::set-output name=version::$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))")
34-
3531
- name: Upgrade pip, setuptools and wheel
3632
run: python -m pip install --upgrade pip setuptools wheel
3733

0 commit comments

Comments
 (0)