Skip to content

Commit 64725f2

Browse files
author
jmorrowomni
committed
2 parents f8f7f32 + 65efbf6 commit 64725f2

File tree

3 files changed

+27
-19
lines changed

3 files changed

+27
-19
lines changed

.github/labels.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@
5656
- color: "ef476c"
5757
description: This issue is a request for information or needs discussion
5858
name: question
59+
- color: "d73a4a"
60+
description: This issue or pull request addresses a security issue
61+
name: security
5962
- color: "00008b"
6063
description: This issue or pull request adds or otherwise modifies test code
6164
name: test

.github/workflows/build.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ jobs:
103103
uses: mxschmitt/action-tmate@v3
104104
if: env.RUN_TMATE
105105
test:
106+
name: test source - py${{ matrix.python-version }}
106107
runs-on: ${{ matrix.os }}
107108
strategy:
108109
fail-fast: false
@@ -195,10 +196,11 @@ jobs:
195196
uses: mxschmitt/action-tmate@v3
196197
if: env.RUN_TMATE
197198
build:
198-
runs-on: ${{ matrix.os }}
199+
name: build wheel - py${{ matrix.python-version }}
199200
needs:
200201
- lint
201202
- test
203+
runs-on: ${{ matrix.os }}
202204
strategy:
203205
fail-fast: false
204206
matrix:
@@ -248,9 +250,10 @@ jobs:
248250
uses: mxschmitt/action-tmate@v3
249251
if: env.RUN_TMATE
250252
test-build:
251-
runs-on: ${{ matrix.os }}
253+
name: test built wheel - py${{ matrix.python-version }}
252254
needs:
253255
- build
256+
runs-on: ${{ matrix.os }}
254257
strategy:
255258
fail-fast: false
256259
matrix:
@@ -289,12 +292,14 @@ jobs:
289292
uses: actions/download-artifact@v3
290293
with:
291294
name: dist-${{ matrix.python-version }}
292-
- name: Install testing dependencies
293-
run: |
294-
python -m pip install --upgrade pip setuptools wheel
295-
python -m pip install --upgrade pytest pytest-cov
296-
- name: Install the built wheel (there should only be one)
297-
run: python -m pip install *.whl
295+
path: dist
296+
- id: find-wheel
297+
name: Get the name of the retrieved wheel (there should only be one)
298+
run: echo "wheel=$(ls dist/*whl)" >> $GITHUB_OUTPUT
299+
- name: Update core Python packages
300+
run: python -m pip install --upgrade pip setuptools wheel
301+
- name: Install the built wheel (along with testing dependencies)
302+
run: python -m pip install ${{ steps.find-wheel.outputs.wheel }}[test]
298303
- name: Run tests
299304
env:
300305
RELEASE_TAG: ${{ github.event.release.tag_name }}

.pre-commit-config.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ default_language_version:
55

66
repos:
77
- repo: https://github.com/pre-commit/pre-commit-hooks
8-
rev: v4.3.0
8+
rev: v4.4.0
99
hooks:
1010
- id: check-case-conflict
1111
- id: check-executables-have-shebangs
@@ -31,7 +31,7 @@ repos:
3131

3232
# Text file hooks
3333
- repo: https://github.com/igorshubovych/markdownlint-cli
34-
rev: v0.32.2
34+
rev: v0.33.0
3535
hooks:
3636
- id: markdownlint
3737
args:
@@ -41,22 +41,22 @@ repos:
4141
hooks:
4242
- id: prettier
4343
- repo: https://github.com/adrienverge/yamllint
44-
rev: v1.28.0
44+
rev: v1.29.0
4545
hooks:
4646
- id: yamllint
4747
args:
4848
- --strict
4949

5050
# GitHub Actions hooks
5151
- repo: https://github.com/python-jsonschema/check-jsonschema
52-
rev: 0.18.4
52+
rev: 0.21.0
5353
hooks:
5454
- id: check-github-actions
5555
- id: check-github-workflows
5656

5757
# pre-commit hooks
5858
- repo: https://github.com/pre-commit/pre-commit
59-
rev: v2.20.0
59+
rev: v3.0.2
6060
hooks:
6161
- id: validate_manifest
6262

@@ -98,29 +98,29 @@ repos:
9898
name: bandit (everything else)
9999
exclude: tests
100100
- repo: https://github.com/psf/black
101-
rev: 22.10.0
101+
rev: 22.12.0
102102
hooks:
103103
- id: black
104104
- repo: https://github.com/PyCQA/flake8
105-
rev: 5.0.4
105+
rev: 6.0.0
106106
hooks:
107107
- id: flake8
108108
additional_dependencies:
109109
- flake8-docstrings
110110
- repo: https://github.com/PyCQA/isort
111-
rev: 5.10.1
111+
rev: 5.12.0
112112
hooks:
113113
- id: isort
114114
- repo: https://github.com/pre-commit/mirrors-mypy
115-
rev: v0.990
115+
rev: v0.991
116116
hooks:
117117
- id: mypy
118118
additional_dependencies:
119119
- types-docopt
120120
- types-requests
121121
- types-setuptools
122122
- repo: https://github.com/asottile/pyupgrade
123-
rev: v3.2.0
123+
rev: v3.3.1
124124
hooks:
125125
- id: pyupgrade
126126

@@ -133,7 +133,7 @@ repos:
133133

134134
# Terraform hooks
135135
- repo: https://github.com/antonbabenko/pre-commit-terraform
136-
rev: v1.76.0
136+
rev: v1.77.0
137137
hooks:
138138
- id: terraform_fmt
139139
- id: terraform_validate

0 commit comments

Comments
 (0)