Skip to content

Commit 53a8e35

Browse files
SNOW-680550 bump GitHub actions used (#1286)
1 parent 1b7b132 commit 53a8e35

File tree

7 files changed

+45
-41
lines changed

7 files changed

+45
-41
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
version: 2
22
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
37
- package-ecosystem: "pip"
48
directory: "/"
59
schedule:

.github/workflows/build_test.yml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ jobs:
2626
name: Check linting
2727
runs-on: ubuntu-latest
2828
steps:
29-
- uses: actions/checkout@v2
29+
- uses: actions/checkout@v3
3030
- name: Set up Python
31-
uses: actions/setup-python@v2
31+
uses: actions/setup-python@v4
3232
with:
33-
python-version: '3.7'
33+
python-version: '3.8'
3434
- name: Display Python version
3535
run: python -c "import sys; import os; print(\"\n\".join(os.environ[\"PATH\"].split(os.pathsep))); print(sys.version); print(sys.executable);"
3636
- name: Upgrade setuptools, pip and wheel
@@ -39,7 +39,7 @@ jobs:
3939
run: python -m pip install tox
4040
- name: Set PY
4141
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
42-
- uses: actions/cache@v1
42+
- uses: actions/cache@v3
4343
with:
4444
path: ~/.cache/pre-commit
4545
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
@@ -53,9 +53,9 @@ jobs:
5353
matrix:
5454
python-version: [ "3.7", "3.8", "3.9", "3.10" ]
5555
steps:
56-
- uses: actions/checkout@v2
56+
- uses: actions/checkout@v3
5757
- name: Set up Python
58-
uses: actions/setup-python@v2
58+
uses: actions/setup-python@v4
5959
with:
6060
python-version: ${{ matrix.python-version }}
6161
- name: Display Python version
@@ -95,12 +95,12 @@ jobs:
9595
shell: bash
9696
- name: Set up QEMU
9797
if: ${{ matrix.os.id == 'manylinux_aarch64' }}
98-
uses: docker/setup-qemu-action@v1
98+
uses: docker/setup-qemu-action@v2
9999
with:
100100
platforms: all
101-
- uses: actions/checkout@v2
101+
- uses: actions/checkout@v3
102102
- name: Building wheel
103-
uses: pypa/cibuildwheel@v2.3.1
103+
uses: pypa/cibuildwheel@v2.11.1
104104
env:
105105
CIBW_BUILD: cp${{ env.shortver }}-${{ matrix.os.id }}
106106
MACOSX_DEPLOYMENT_TARGET: 10.14 # Should be kept in sync with ci/build_darwin.sh
@@ -131,9 +131,9 @@ jobs:
131131
python-version: ["3.7", "3.8", "3.9", "3.10"]
132132
cloud-provider: [aws, azure, gcp]
133133
steps:
134-
- uses: actions/checkout@v2
134+
- uses: actions/checkout@v3
135135
- name: Set up Python
136-
uses: actions/setup-python@v2
136+
uses: actions/setup-python@v4
137137
with:
138138
python-version: ${{ matrix.python-version }}
139139
- name: Display Python version
@@ -146,7 +146,7 @@ jobs:
146146
gpg --quiet --batch --yes --decrypt --passphrase="$PARAMETERS_SECRET" \
147147
.github/workflows/parameters/public/parameters_${{ matrix.cloud-provider }}.py.gpg > test/parameters.py
148148
- name: Download wheel(s)
149-
uses: actions/download-artifact@v2
149+
uses: actions/download-artifact@v3
150150
with:
151151
name: ${{ matrix.os.download_name }}_py${{ matrix.python-version }}
152152
path: dist
@@ -168,7 +168,7 @@ jobs:
168168
- name: Combine coverages
169169
run: python -m tox -e coverage --skip-missing-interpreters false
170170
shell: bash
171-
- uses: actions/upload-artifact@v2
171+
- uses: actions/upload-artifact@v3
172172
with:
173173
name: coverage_${{ matrix.os.download_name }}-${{ matrix.python-version }}-${{ matrix.cloud-provider }}
174174
path: |
@@ -188,9 +188,9 @@ jobs:
188188
python-version: [3.7]
189189
cloud-provider: [aws]
190190
steps:
191-
- uses: actions/checkout@v2
191+
- uses: actions/checkout@v3
192192
- name: Set up Python
193-
uses: actions/setup-python@v2
193+
uses: actions/setup-python@v4
194194
with:
195195
python-version: ${{ matrix.python-version }}
196196
- name: Display Python version
@@ -223,7 +223,7 @@ jobs:
223223
matrix:
224224
cloud-provider: [aws]
225225
steps:
226-
- uses: actions/checkout@v2
226+
- uses: actions/checkout@v3
227227
- name: Setup parameters file
228228
shell: bash
229229
env:
@@ -232,7 +232,7 @@ jobs:
232232
gpg --quiet --batch --yes --decrypt --passphrase="$PARAMETERS_SECRET" \
233233
.github/workflows/parameters/public/parameters_${{ matrix.cloud-provider }}.py.gpg > test/parameters.py
234234
- name: Download wheel(s)
235-
uses: actions/download-artifact@v2
235+
uses: actions/download-artifact@v3
236236
with:
237237
name: manylinux_x86_64_py3.7
238238
path: dist
@@ -247,7 +247,7 @@ jobs:
247247
PYTEST_ADDOPTS: --color=yes --tb=short
248248
TOX_PARALLEL_NO_SPINNER: 1
249249
shell: bash
250-
- uses: actions/upload-artifact@v2
250+
- uses: actions/upload-artifact@v3
251251
with:
252252
name: coverage_linux-fips-3.7-${{ matrix.cloud-provider }}
253253
path: |
@@ -257,15 +257,15 @@ jobs:
257257
combine-coverage:
258258
if: ${{ success() || failure() }}
259259
name: Combine coverage
260-
needs: [test, test-fips]
260+
needs: [lint, test, test-fips]
261261
runs-on: ubuntu-latest
262262
steps:
263-
- uses: actions/checkout@v2
264-
- uses: actions/download-artifact@v2
263+
- uses: actions/checkout@v3
264+
- uses: actions/download-artifact@v3
265265
with:
266266
path: artifacts
267267
- name: Set up Python
268-
uses: actions/setup-python@v2
268+
uses: actions/setup-python@v4
269269
with:
270270
python-version: '3.7'
271271
- name: Display Python version
@@ -290,15 +290,15 @@ jobs:
290290
- name: Combine coverages
291291
run: python -m tox -e coverage
292292
- name: Publish html coverage
293-
uses: actions/upload-artifact@v2
293+
uses: actions/upload-artifact@v3
294294
with:
295295
name: overall_cov_html
296296
path: .tox/htmlcov
297297
- name: Publish xml coverage
298-
uses: actions/upload-artifact@v2
298+
uses: actions/upload-artifact@v3
299299
with:
300300
name: overall_cov_xml
301301
path: .tox/coverage.xml
302-
- uses: codecov/codecov-action@v1
302+
- uses: codecov/codecov-action@v3
303303
with:
304-
file: .tox/coverage.xml
304+
files: .tox/coverage.xml

.github/workflows/create_req_files.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
matrix:
1212
python-version: ["3.7", "3.8", "3.9", "3.10"]
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v3
1515
- name: Set up Python
16-
uses: actions/setup-python@v2
16+
uses: actions/setup-python@v4
1717
with:
1818
python-version: ${{ matrix.python-version }}
1919
- name: Display Python version
@@ -37,7 +37,7 @@ jobs:
3737
- name: Show created req file
3838
shell: bash
3939
run: cat ${{ env.requirements_file }}
40-
- uses: actions/upload-artifact@v2
40+
- uses: actions/upload-artifact@v3
4141
with:
4242
path: temp_requirement
4343

@@ -46,11 +46,11 @@ jobs:
4646
name: Commit and push files
4747
runs-on: ubuntu-latest
4848
steps:
49-
- uses: actions/checkout@v2
49+
- uses: actions/checkout@v3
5050
with:
5151
token: ${{ secrets.PAT }}
5252
- name: Download requirement files
53-
uses: actions/download-artifact@v2
53+
uses: actions/download-artifact@v3
5454
with:
5555
name: artifact
5656
path: tested_requirements

.github/workflows/jira_close.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout
12-
uses: actions/checkout@v2
12+
uses: actions/checkout@v3
1313
with:
1414
repository: snowflakedb/gh-actions
1515
ref: jira_v1

.github/workflows/jira_issue.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
if: ((github.event_name == 'issue_comment' && github.event.comment.body == 'recreate jira' && github.event.comment.user.login == 'sfc-gh-mkeller') || (github.event_name == 'issues' && github.event.pull_request.user.login != 'whitesource-for-github-com[bot]'))
1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@v3
1616
with:
1717
repository: snowflakedb/gh-actions
1818
ref: jira_v1

.pre-commit-config.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
exclude: '^(.*egg.info.*|.*/parameters.py|src/snowflake/connector/vendored/.*/).*$'
22
repos:
33
- repo: https://github.com/pre-commit/pre-commit-hooks
4-
rev: v4.1.0
4+
rev: v4.4.0
55
hooks:
66
- id: trailing-whitespace
77
- id: end-of-file-fixer
@@ -11,7 +11,7 @@ repos:
1111
- id: debug-statements
1212
- id: check-ast
1313
- repo: https://github.com/Lucas-C/pre-commit-hooks.git
14-
rev: v1.1.13
14+
rev: v1.3.1
1515
hooks:
1616
- id: insert-license
1717
name: insert-py-license
@@ -38,11 +38,11 @@ repos:
3838
- --license-filepath
3939
- license_header.txt
4040
- repo: https://github.com/asottile/yesqa
41-
rev: v1.3.0
41+
rev: v1.4.0
4242
hooks:
4343
- id: yesqa
4444
- repo: https://github.com/mgedmin/check-manifest
45-
rev: "0.48"
45+
rev: "0.49"
4646
hooks:
4747
- id: check-manifest
4848
- repo: https://github.com/PyCQA/isort
@@ -57,18 +57,18 @@ repos:
5757
- --append-only
5858
files: ^src/snowflake/connector/.*\.py$
5959
- repo: https://github.com/asottile/pyupgrade
60-
rev: v2.31.1
60+
rev: v3.3.0
6161
hooks:
6262
- id: pyupgrade
6363
args: [--py37-plus]
6464
- repo: https://github.com/PyCQA/flake8
65-
rev: 5.0.4
65+
rev: 6.0.0
6666
hooks:
6767
- id: flake8
6868
additional_dependencies:
6969
- flake8-bugbear
7070
- repo: https://github.com/psf/black
71-
rev: 22.3.0
71+
rev: 22.10.0
7272
hooks:
7373
- id: black
7474
args:

test/integ/test_bindings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def test_binding(conn_cnx, db_parameters, bulk_array_optimization):
107107
"str1",
108108
1.2,
109109
# Py2 has bytes in str type, so Python Connector
110-
bytes(b"abc"),
110+
b"abc",
111111
bytearray(b"def"),
112112
current_utctime,
113113
current_localtime,

0 commit comments

Comments
 (0)