From b7d9af00cc8f2c46edcbe4febbdd3fd781de2c92 Mon Sep 17 00:00:00 2001 From: Hamir Mahal Date: Tue, 6 Aug 2024 01:59:34 -0700 Subject: [PATCH] fix: usage of `actions/checkout@v2` (#2403) * chore: changes from formatting on save * fix: usage of `actions/checkout@v2` --- .github/workflows/python.yml | 6 +++--- .github/workflows/rust-ci.yml | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index be9b917ec2..68e2eee31e 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -18,9 +18,9 @@ jobs: strategy: matrix: os: [ubuntu-latest] # For now, only test on Linux - steps: + steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install Rust uses: actions-rs/toolchain@v1 @@ -65,4 +65,4 @@ jobs: working-directory: ./candle-pyo3 run: | source .env/bin/activate - python -m pytest -s -v tests \ No newline at end of file + python -m pytest -s -v tests diff --git a/.github/workflows/rust-ci.yml b/.github/workflows/rust-ci.yml index 2ca53b2348..ee480c474c 100644 --- a/.github/workflows/rust-ci.yml +++ b/.github/workflows/rust-ci.yml @@ -1,6 +1,6 @@ -on: +on: push: - branches: + branches: - main pull_request: @@ -15,7 +15,7 @@ jobs: os: [ubuntu-latest, windows-latest, macOS-latest] rust: [stable] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: actions-rs/toolchain@v1 with: profile: minimal @@ -34,7 +34,7 @@ jobs: os: [ubuntu-latest, windows-latest, macOS-latest] rust: [stable] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: actions-rs/toolchain@v1 with: profile: minimal @@ -49,7 +49,7 @@ jobs: name: Rustfmt runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: actions-rs/toolchain@v1 with: profile: minimal @@ -65,7 +65,7 @@ jobs: name: Clippy runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: actions-rs/toolchain@v1 with: profile: minimal