Commit 9d6f667 1 parent af654b5 commit 9d6f667 Copy full SHA for 9d6f667
File tree 3 files changed +16
-3
lines changed
3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,21 @@ jobs:
116
116
apt-cache --generate pkgnames \
117
117
| grep --line-regexp --fixed-strings "$deps" \
118
118
| xargs apt install -y
119
+ - name : Workaround for https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1057968
120
+ env :
121
+ DEBIAN_FRONTEND : noninteractive
122
+ shell : bash
123
+ run : |
124
+ set -ex
125
+ grep "Suites: testing" /etc/apt/sources.list.d/debian.sources || exit 0
126
+ python3_pycodestyle=$(dpkg-query --showformat='${Version}\n' --show python3-pycodestyle)
127
+ python3_flake8=$(dpkg-query --showformat='${Version}\n' --show python3-flake8)
128
+ if [[ $python3_pycodestyle == 2.11.* && $python3_flake8 == 5.* ]]; then
129
+ echo 'deb https://deb.debian.org/debian unstable main' >/etc/apt/sources.list.d/debian-unstable.list
130
+ echo 'APT::Default-Release "testing";' >/etc/apt/apt.conf.d/debian-release
131
+ apt update
132
+ apt install -t unstable -y python3-flake8
133
+ fi
119
134
- name : Workaround for https://github.com/actions/checkout/pull/762 not persisting
120
135
run : git config --global --add safe.directory "$PWD"
121
136
- name : Install remaining dependencies
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ dev = [
39
39
" flake8" ,
40
40
" isort >= 5.0" ,
41
41
" mypy >= 0.900" ,
42
- " prysk == 0.16 .0" ,
42
+ " prysk == 0.17 .0" ,
43
43
" twine" ,
44
44
" types-PyYAML" ,
45
45
]
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python3
2
2
3
- from pathlib import Path
4
3
import runpy
5
4
6
5
import prysk .test # type: ignore [import]
7
6
8
7
prysk .test ._IS_ESCAPING_NEEDED = lambda _ : False
9
- prysk .test ._findtests = lambda paths : map (Path , paths ) # https://github.com/prysk/prysk/issues/224
10
8
runpy .run_module ('prysk' )
You can’t perform that action at this time.
0 commit comments