Skip to content

Commit 8e25cd7

Browse files
authored
Fix broken build (#1301)
* Pin `tox==3.25.1` * Ignore B027 * Use `ubuntu-20.04` not latest due to https://github.com/actions/setup-python/issues/544\#issuecomment-1320295576 * More `-20.04` * 3.6.15 * ubuntu-20.04 * Remove hardcoded `-latest`
1 parent f3827fd commit 8e25cd7

File tree

2 files changed

+28
-26
lines changed

2 files changed

+28
-26
lines changed

.flake8

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ extend-ignore =
3131
I # flake8-isort is drunk + we have isort integrated into pre-commit
3232
B009 # FIXME: `getattr()` called with a constant arg
3333
B024 # FIXME: is an abstract base class, but it has no abstract methods
34+
B027 # Is an empty method in an abstract base class, but has no abstract decorator.
35+
# Consider adding @abstractmethod.
3436
C812 # FIXME: missing trailing comma
3537
C819 # FIXME: inline trailing comma
3638
D101

.github/workflows/test-library.yml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ concurrency:
4646
jobs:
4747
pre-setup:
4848
name: ⚙️ Pre-set global build settings
49-
runs-on: ubuntu-latest
49+
runs-on: ubuntu-20.04
5050
defaults:
5151
run:
5252
shell: python
@@ -216,7 +216,7 @@ jobs:
216216
needs:
217217
- pre-setup # transitive, for accessing settings
218218

219-
runs-on: ubuntu-latest
219+
runs-on: ubuntu-20.04
220220

221221
env:
222222
PY_COLORS: 1
@@ -263,7 +263,7 @@ jobs:
263263
python -m
264264
pip install
265265
--user
266-
tox
266+
tox==3.25.1
267267
268268
- name: Grab the source from Git
269269
uses: actions/checkout@v3
@@ -331,7 +331,7 @@ jobs:
331331
- build
332332
- pre-setup # transitive, for accessing settings
333333

334-
runs-on: ubuntu-latest
334+
runs-on: ubuntu-20.04
335335
strategy:
336336
matrix:
337337
toxenv:
@@ -388,7 +388,7 @@ jobs:
388388
python -m
389389
pip install
390390
--user
391-
tox
391+
tox==3.25.1
392392
393393
- name: Grab the source from Git
394394
uses: actions/checkout@v3
@@ -433,15 +433,15 @@ jobs:
433433
- build
434434
- pre-setup # transitive, for accessing settings
435435

436-
runs-on: ${{ matrix.os }}-latest
436+
runs-on: ${{ matrix.os }}
437437
strategy:
438438
fail-fast: false
439439
# max-parallel: 4
440440
matrix:
441441
os:
442-
- macOS
443-
- Ubuntu
444-
- Windows
442+
- macOS-latest
443+
- Ubuntu-20.04
444+
- Windows-latest
445445
python:
446446
# NOTE: The latest and the lowest supported Pythons are prioritized
447447
# NOTE: to improve the responsiveness. It's nice to see the most
@@ -505,7 +505,7 @@ jobs:
505505
python -m
506506
pip install
507507
--user
508-
tox
508+
tox==3.25.1
509509
510510
- name: Grab the source from Git
511511
uses: actions/checkout@v3
@@ -543,7 +543,7 @@ jobs:
543543
verbose: true
544544

545545
test-container:
546-
runs-on: ubuntu-latest
546+
runs-on: ubuntu-20.04
547547
permissions:
548548
packages: write
549549
if: success()
@@ -603,7 +603,7 @@ jobs:
603603
./tests/integration/test_integration.sh 8899
604604
605605
analyze:
606-
runs-on: ubuntu-latest
606+
runs-on: ubuntu-20.04
607607
name: 🛡️ Analyze
608608
# schedule:
609609
# - cron: '0 14 * * 1'
@@ -659,11 +659,11 @@ jobs:
659659
uses: github/codeql-action/analyze@v2
660660

661661
# brew:
662-
# runs-on: ${{ matrix.os }}-latest
662+
# runs-on: ${{ matrix.os }}
663663
# name: 🍺 🐍${{ matrix.python }} @ ${{ matrix.os }}
664664
# strategy:
665665
# matrix:
666-
# os: [macOS]
666+
# os: [macOS-latest]
667667
# python: ['3.10']
668668
# # max-parallel: 1
669669
# fail-fast: false
@@ -681,11 +681,11 @@ jobs:
681681
# proxy -h
682682

683683
dashboard:
684-
runs-on: ${{ matrix.os }}-latest
684+
runs-on: ${{ matrix.os }}
685685
name: 📊 Node ${{ matrix.node }} @ ${{ matrix.os }}
686686
strategy:
687687
matrix:
688-
os: [ubuntu, windows, macOS]
688+
os: [ubuntu-20.04, windows-latest, macOS-latest]
689689
node: ['10.x', '11.x', '12.x']
690690
# max-parallel: 4
691691
fail-fast: false
@@ -712,11 +712,11 @@ jobs:
712712
cd ..
713713
714714
developer:
715-
runs-on: ${{ matrix.os }}-latest
715+
runs-on: ${{ matrix.os }}
716716
name: 🧑‍💻 👩‍💻 👨‍💻 Developer setup ${{ matrix.node }} @ ${{ matrix.os }}
717717
strategy:
718718
matrix:
719-
os: [ubuntu, macOS]
719+
os: [ubuntu-20.04, macOS-latest]
720720
python: ['3.10']
721721
fail-fast: false
722722
steps:
@@ -740,7 +740,7 @@ jobs:
740740
python3 -m proxy --version
741741
742742
ghcr-latest:
743-
runs-on: ubuntu-latest
743+
runs-on: ubuntu-20.04
744744
permissions:
745745
packages: write
746746
if: success()
@@ -822,7 +822,7 @@ jobs:
822822
-t $LATEST_TAG .
823823
824824
ghcr-openssl:
825-
runs-on: ubuntu-latest
825+
runs-on: ubuntu-20.04
826826
permissions:
827827
packages: write
828828
if: success()
@@ -902,7 +902,7 @@ jobs:
902902
-t $LATEST_TAG .
903903
904904
docker-latest:
905-
runs-on: ubuntu-latest
905+
runs-on: ubuntu-20.04
906906
permissions:
907907
packages: write
908908
if: success()
@@ -975,7 +975,7 @@ jobs:
975975
- ghcr-openssl
976976
- docker-latest
977977

978-
runs-on: ubuntu-latest
978+
runs-on: ubuntu-20.04
979979

980980
steps:
981981
- name: Decide whether the needed jobs succeeded or failed
@@ -990,7 +990,7 @@ jobs:
990990
- pre-setup # transitive, for accessing settings
991991
if: >-
992992
fromJSON(needs.pre-setup.outputs.release-requested)
993-
runs-on: ubuntu-latest
993+
runs-on: ubuntu-20.04
994994

995995
environment:
996996
name: release
@@ -1019,7 +1019,7 @@ jobs:
10191019
if: >-
10201020
fromJSON(needs.pre-setup.outputs.is-untagged-devel)
10211021
|| fromJSON(needs.pre-setup.outputs.release-requested)
1022-
runs-on: ubuntu-latest
1022+
runs-on: ubuntu-20.04
10231023

10241024
environment:
10251025
name: release-testpypi
@@ -1048,7 +1048,7 @@ jobs:
10481048
needs:
10491049
- publish-pypi
10501050
- pre-setup # transitive, for accessing settings
1051-
runs-on: ubuntu-latest
1051+
runs-on: ubuntu-20.04
10521052

10531053
steps:
10541054
- name: Fetch the src snapshot
@@ -1081,7 +1081,7 @@ jobs:
10811081
needs:
10821082
- post-release-repo-update
10831083
- pre-setup # transitive, for accessing settings
1084-
runs-on: ubuntu-latest
1084+
runs-on: ubuntu-20.04
10851085

10861086
permissions:
10871087
contents: write

0 commit comments

Comments
 (0)