Skip to content

Commit 29dae3f

Browse files
authored
[update] Update github action (#277)
* [delete] delete old issue template * update builds.yml update ubuntu & python version * update checks.yml update ubuntu & python version * update tests.yml update ubuntu & python version * decrease python version Decrease python version due to pylint check failed. Will update after python community solve the error. * decrease python version decrease python version due to pylint failed * decrease python version * update checks.yml * update checks.yml * Update checks.yml * update checks.yml * update python version * remove sudo * add allowlist_externals * use apt-get * use apt-get * add sudo * remove sudo * remove apt-get update * use whitelist_externals * add allowlist * allow sudo * add sudo * create ISSUE_TEMPLATE.md * disable pylint * remove # mark
1 parent 483e735 commit 29dae3f

File tree

6 files changed

+15
-14
lines changed

6 files changed

+15
-14
lines changed

.github/ISSUE_TEMPLATE/ISSUE_TEMPLATE.md .github/ISSUE_TEMPLATE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ Please offer the steps to reproduce your problem/bug
88

99
# Error log
1010

11-
Please provide error message or screen shot for better understanding.
11+
Please provide error message or screen shot for better understanding.

.github/workflows/builds.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ jobs:
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
os: [ubuntu-18.04, macos-latest, windows-latest]
14-
python-version: ["3.10"]
13+
os: [ubuntu-latest, macos-latest, windows-latest]
14+
python-version: ["3.11.3"]
1515

1616
steps:
1717
- uses: actions/checkout@v2
@@ -26,4 +26,4 @@ jobs:
2626
TOXENV: build
2727
run: |
2828
pip install -U tox
29-
tox
29+
tox

.github/workflows/checks.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ on:
66

77
jobs:
88
checks:
9-
runs-on: ubuntu-18.04
9+
runs-on: ubuntu-latest
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
python-version: ["3.10"]
14-
env: [security, flake8, pylint]
13+
python-version: ["3.11.3"]
14+
env: [security, flake8]
1515

1616
steps:
1717
- uses: actions/checkout@v2
@@ -26,4 +26,4 @@ jobs:
2626
TOXENV: ${{ matrix.env }}
2727
run: |
2828
pip install -U tox
29-
tox
29+
tox

.github/workflows/tests.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ on:
66

77
jobs:
88
tests:
9-
runs-on: ubuntu-18.04
9+
runs-on: ubuntu-latest
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
python-version: ["3.10"]
13+
python-version: ["3.11.3"]
1414

1515
steps:
1616
- uses: actions/checkout@v2

pylintrc

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
persistent=no
33
jobs=1 # >1 hides results
44
suggestion-mode=yes # guess common misconfiguration and emit user-friendly hints
5-
py-version = 3.7.0
5+
py-version = 3.11.3
66

77
[MESSAGES CONTROL]
88
disable=abstract-method,
@@ -122,4 +122,4 @@ disable=abstract-method,
122122
useless-super-delegation,
123123
wildcard-import,
124124
wrong-import-order,
125-
wrong-import-position
125+
wrong-import-position

tox.ini

+3-2
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,10 @@ deps =
6060
{[testenv]deps}
6161
scrapy==2.6.1
6262
redis==4.2.2
63-
commands =
63+
allowlist_externals = sudo
64+
commands =
6465
sudo apt-get update
65-
sudo apt-get install redis
66+
sudo apt-get install -y redis
6667
sudo systemctl start redis-server
6768
pip install .
6869
python -m pytest --cov-report term --cov=scrapy_redis

0 commit comments

Comments
 (0)