From c31bd9bcb80f19e7e6ea5b4cad284bfaa3271734 Mon Sep 17 00:00:00 2001 From: yihong Date: Thu, 25 Jul 2024 02:00:27 +0800 Subject: [PATCH] Upgrade versions of github actions and fix a lint issue (#454) --- .github/workflows/docs.yml | 4 ++-- .github/workflows/lint.yml | 4 ++-- .github/workflows/release.yml | 12 ++++++------ .github/workflows/wheels.yml | 8 ++++---- README.md | 2 +- src/viztracer/code_monkey.py | 2 +- 6 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index a19cc3de..77178370 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -15,9 +15,9 @@ jobs: docs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.11" - name: Install dependency diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 32bc11a6..e1628ae1 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -12,9 +12,9 @@ jobs: python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install dependency diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4d89d0e0..0d6db765 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,14 +16,14 @@ jobs: arch: [auto, aarch64] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up QEMU if: ${{ matrix.arch == 'aarch64' }} uses: docker/setup-qemu-action@v1 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: 3.9 @@ -66,10 +66,10 @@ jobs: os: macos-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.11' @@ -108,9 +108,9 @@ jobs: deploy-tar: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: 3.9 - name: Install dependencies diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 993da144..c73b68e3 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -25,12 +25,12 @@ jobs: arch: [auto, aarch64] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up QEMU if: ${{ matrix.arch == 'aarch64' }} uses: docker/setup-qemu-action@v1 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: 3.9 - name: Install dependencies @@ -64,9 +64,9 @@ jobs: os: macos-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.11' - name: Install dependencies diff --git a/README.md b/README.md index de58c1bf..3ec77e9c 100644 --- a/README.md +++ b/README.md @@ -277,6 +277,6 @@ Please send bug reports and feature requests through [github issue tracker](http ## License -Copyright 2020-2023 Tian Gao. +Copyright 2020-2024 Tian Gao. Distributed under the terms of the [Apache 2.0 license](https://github.com/gaogaotiantian/viztracer/blob/master/LICENSE). diff --git a/src/viztracer/code_monkey.py b/src/viztracer/code_monkey.py index e59e4a8c..c8b46ade 100644 --- a/src/viztracer/code_monkey.py +++ b/src/viztracer/code_monkey.py @@ -189,7 +189,7 @@ def get_instrument_node_by_node(self, trigger: str, node: Optional[ast.expr]) -> event="instant", ) - def get_add_variable_node(self, name: str, var_node: ast.AST, event: str) -> ast.Expr: + def get_add_variable_node(self, name: str, var_node: ast.expr, event: str) -> ast.Expr: node_instrument = ast.Expr( value=ast.Call( func=ast.Attribute(