Skip to content

Commit c31bd9b

Browse files
authored
Upgrade versions of github actions and fix a lint issue (#454)
1 parent be10add commit c31bd9b

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ jobs:
1515
docs:
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1919
- name: Set up Python
20-
uses: actions/setup-python@v4
20+
uses: actions/setup-python@v5
2121
with:
2222
python-version: "3.11"
2323
- name: Install dependency

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616
- name: Set up Python
17-
uses: actions/setup-python@v4
17+
uses: actions/setup-python@v5
1818
with:
1919
python-version: ${{ matrix.python-version }}
2020
- name: Install dependency

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ jobs:
1616
arch: [auto, aarch64]
1717

1818
steps:
19-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
2020

2121
- name: Set up QEMU
2222
if: ${{ matrix.arch == 'aarch64' }}
2323
uses: docker/setup-qemu-action@v1
2424

2525
- name: Set up Python
26-
uses: actions/setup-python@v4
26+
uses: actions/setup-python@v5
2727
with:
2828
python-version: 3.9
2929

@@ -66,10 +66,10 @@ jobs:
6666
os: macos-latest
6767

6868
steps:
69-
- uses: actions/checkout@v3
69+
- uses: actions/checkout@v4
7070

7171
- name: Set up Python
72-
uses: actions/setup-python@v4
72+
uses: actions/setup-python@v5
7373
with:
7474
python-version: '3.11'
7575

@@ -108,9 +108,9 @@ jobs:
108108
deploy-tar:
109109
runs-on: ubuntu-latest
110110
steps:
111-
- uses: actions/checkout@v3
111+
- uses: actions/checkout@v4
112112
- name: Set up Python
113-
uses: actions/setup-python@v4
113+
uses: actions/setup-python@v5
114114
with:
115115
python-version: 3.9
116116
- name: Install dependencies

.github/workflows/wheels.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ jobs:
2525
arch: [auto, aarch64]
2626

2727
steps:
28-
- uses: actions/checkout@v3
28+
- uses: actions/checkout@v4
2929
- name: Set up QEMU
3030
if: ${{ matrix.arch == 'aarch64' }}
3131
uses: docker/setup-qemu-action@v1
3232
- name: Set up Python
33-
uses: actions/setup-python@v4
33+
uses: actions/setup-python@v5
3434
with:
3535
python-version: 3.9
3636
- name: Install dependencies
@@ -64,9 +64,9 @@ jobs:
6464
os: macos-latest
6565

6666
steps:
67-
- uses: actions/checkout@v3
67+
- uses: actions/checkout@v4
6868
- name: Set up Python
69-
uses: actions/setup-python@v4
69+
uses: actions/setup-python@v5
7070
with:
7171
python-version: '3.11'
7272
- name: Install dependencies

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,6 @@ Please send bug reports and feature requests through [github issue tracker](http
277277

278278
## License
279279

280-
Copyright 2020-2023 Tian Gao.
280+
Copyright 2020-2024 Tian Gao.
281281

282282
Distributed under the terms of the [Apache 2.0 license](https://github.com/gaogaotiantian/viztracer/blob/master/LICENSE).

src/viztracer/code_monkey.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def get_instrument_node_by_node(self, trigger: str, node: Optional[ast.expr]) ->
189189
event="instant",
190190
)
191191

192-
def get_add_variable_node(self, name: str, var_node: ast.AST, event: str) -> ast.Expr:
192+
def get_add_variable_node(self, name: str, var_node: ast.expr, event: str) -> ast.Expr:
193193
node_instrument = ast.Expr(
194194
value=ast.Call(
195195
func=ast.Attribute(

0 commit comments

Comments
 (0)