Skip to content

Commit 598c578

Browse files
authored
Merge pull request #118 from iterative/bump-deps
2 parents f8203d9 + 7f713b7 commit 598c578

File tree

4 files changed

+25
-26
lines changed

4 files changed

+25
-26
lines changed

.github/workflows/comment-bot.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,23 @@
11
name: Comment Bot
22
on:
3-
issue_comment:
4-
types: [created]
5-
pull_request_review_comment:
6-
types: [created]
3+
issue_comment: {types: [created]}
4+
pull_request_review_comment: {types: [created]}
75
jobs:
86
tag: # /tag <tagname> <commit>
97
if: startsWith(github.event.comment.body, '/tag ')
108
runs-on: ubuntu-latest
119
steps:
12-
- uses: actions/checkout@v2
10+
- uses: actions/checkout@v3
1311
- name: React Seen
14-
uses: actions/github-script@v2
12+
uses: actions/github-script@v6
1513
with:
1614
script: |
17-
const perm = await github.repos.getCollaboratorPermissionLevel({
15+
const perm = await github.rest.repos.getCollaboratorPermissionLevel({
1816
owner: context.repo.owner, repo: context.repo.repo,
1917
username: context.payload.comment.user.login})
2018
post = (context.eventName == "issue_comment"
21-
? github.reactions.createForIssueComment
22-
: github.reactions.createForPullRequestReviewComment)
19+
? github.rest.reactions.createForIssueComment
20+
: github.rest.reactions.createForPullRequestReviewComment)
2321
if (!["admin", "write"].includes(perm.data.permission)){
2422
post({
2523
owner: context.repo.owner, repo: context.repo.repo,
@@ -40,12 +38,12 @@ jobs:
4038
BODY: ${{ github.event.comment.body }}
4139
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
4240
- name: React Success
43-
uses: actions/github-script@v2
41+
uses: actions/github-script@v6
4442
with:
4543
script: |
4644
post = (context.eventName == "issue_comment"
47-
? github.reactions.createForIssueComment
48-
: github.reactions.createForPullRequestReviewComment)
45+
? github.rest.reactions.createForIssueComment
46+
: github.rest.reactions.createForPullRequestReviewComment)
4947
post({
5048
owner: context.repo.owner, repo: context.repo.repo,
5149
comment_id: context.payload.comment.id, content: "rocket"})

.github/workflows/test.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,19 @@ name: Test
22
on:
33
push:
44
pull_request:
5-
schedule:
6-
- cron: '0 9 * * 1' # M H d m w (Mondays at 9:00)
5+
schedule: [{cron: '0 9 * * 1'}] # M H d m w (Mondays at 9:00)
76
workflow_dispatch:
87
jobs:
98
check:
109
if: github.event_name != 'pull_request' || !contains('OWNER,MEMBER,COLLABORATOR', github.event.pull_request.author_association)
1110
name: Check
1211
runs-on: ubuntu-latest
1312
steps:
14-
- uses: actions/checkout@v2
15-
- uses: actions/setup-python@v2
13+
- uses: actions/checkout@v3
14+
- uses: actions/setup-python@v4
1615
- name: set PYSHA
1716
run: echo "PYSHA=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
18-
- uses: actions/cache@v1
17+
- uses: actions/cache@v3
1918
with:
2019
path: ~/.cache/pre-commit
2120
key: pre-commit|${{ env.PYSHA }}|${{ hashFiles('.pre-commit-config.yaml') }}
@@ -42,12 +41,12 @@ jobs:
4241
runs-on: ubuntu-latest
4342
strategy:
4443
matrix:
45-
python: [3.6, 3.9]
44+
python: [3.6, '3.10']
4645
steps:
47-
- uses: actions/checkout@v2
46+
- uses: actions/checkout@v3
4847
with:
4948
fetch-depth: 0
50-
- uses: actions/setup-python@v2
49+
- uses: actions/setup-python@v4
5150
with:
5251
python-version: ${{ matrix.python }}
5352
- name: Install
@@ -59,11 +58,11 @@ jobs:
5958
name: PyPI Deploy
6059
runs-on: ubuntu-latest
6160
steps:
62-
- uses: actions/checkout@v2
61+
- uses: actions/checkout@v3
6362
with:
6463
fetch-depth: 0
65-
token: ${{ secrets.GH_TOKEN }}
66-
- uses: actions/setup-python@v2
64+
token: ${{ secrets.GH_TOKEN || github.token }}
65+
- uses: actions/setup-python@v4
6766
- id: dist
6867
uses: casperdcl/deploy-pypi@v2
6968
with:

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,16 @@ repos:
3939
- flake8-string-format
4040
- flake8-type-annotations
4141
- repo: https://github.com/pre-commit/mirrors-mypy
42-
rev: v0.961
42+
rev: v0.982
4343
hooks:
4444
- id: mypy
45+
additional_dependencies: [types-setuptools]
4546
- repo: https://github.com/google/yapf
4647
rev: v0.32.0
4748
hooks:
4849
- id: yapf
4950
args: [-i]
50-
additional_dependencies:
51-
- toml
51+
additional_dependencies: [toml]
5252
- repo: https://github.com/PyCQA/isort
5353
rev: 5.10.1
5454
hooks:

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ classifiers=
4242
Programming Language :: Python :: 3.7
4343
Programming Language :: Python :: 3.8
4444
Programming Language :: Python :: 3.9
45+
Programming Language :: Python :: 3.10
46+
Programming Language :: Python :: 3 :: Only
4547
Programming Language :: Python :: Implementation
4648
Programming Language :: Python :: Implementation :: IronPython
4749
Programming Language :: Python :: Implementation :: PyPy

0 commit comments

Comments
 (0)