From 88c4fa428ac7d0116937b3b4f5070ee8d16ca7f0 Mon Sep 17 00:00:00 2001 From: Michael Bradley Date: Sun, 23 Feb 2025 09:15:59 -0500 Subject: [PATCH 1/2] Remove action debug commands --- .forgejo/workflows/build.yaml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index db124bc..07d5a6c 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -56,7 +56,7 @@ jobs: uses: forgejo/upload-artifact@v4 with: name: wheels - path: target/wheels/*.whl + path: target/wheels/*.whl # Should only match the one target built compression-level: 0 python-test: @@ -74,10 +74,7 @@ jobs: - name: Retrieve built wheel uses: forgejo/download-artifact@v4 - name: Install built wheel - run: | - ls -la - ls -la wheels - pip install wheels/*.whl + run: pip install wheels/*.whl # Should only match the one target built - name: Run Python tests run: pytest tests/*.py From e99d8b351395e964bd485feafcabdf63735e93ca Mon Sep 17 00:00:00 2001 From: Michael Bradley Date: Sun, 23 Feb 2025 09:16:50 -0500 Subject: [PATCH 2/2] Re-enable other CI jobs --- .forgejo/workflows/build.yaml | 76 +++++++++++++++++------------------ 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index 07d5a6c..7b3bd7b 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -4,31 +4,31 @@ on: [push] name: CI jobs: - # formatting: - # name: Formatting - # runs-on: ubuntu-22.04 - # steps: - # - name: Checkout - # uses: actions/checkout@v4 - # - name: Set up Rust - # uses: https://github.com/dtolnay/rust-toolchain@stable - # with: - # components: rustfmt - # - name: Check Rust formatting - # run: cargo fmt --all -- --check + formatting: + name: Formatting + runs-on: ubuntu-22.04 + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up Rust + uses: https://github.com/dtolnay/rust-toolchain@stable + with: + components: rustfmt + - name: Check Rust formatting + run: cargo fmt --all -- --check - # clippy: - # name: Clippy - # runs-on: ubuntu-22.04 - # steps: - # - name: Checkout - # uses: actions/checkout@v4 - # - name: Set up Rust - # uses: https://github.com/dtolnay/rust-toolchain@stable - # with: - # components: clippy - # - name: Run Clippy - # run: cargo clippy -- -D warnings + clippy: + name: Clippy + runs-on: ubuntu-22.04 + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up Rust + uses: https://github.com/dtolnay/rust-toolchain@stable + with: + components: clippy + - name: Run Clippy + run: cargo clippy -- -D warnings build: name: Build @@ -78,17 +78,17 @@ jobs: - name: Run Python tests run: pytest tests/*.py - # rust-test: - # name: Rust tests - # runs-on: ubuntu-22.04 - # steps: - # - name: Checkout the code - # uses: actions/checkout@v4 - # - name: Set up Rust - # uses: https://github.com/dtolnay/rust-toolchain@stable - # - name: Set up the Python toolchain - # uses: actions/setup-python@v5 - # with: - # python-version: "3.13" - # - name: Run Rust tests - # run: cargo test + rust-test: + name: Rust tests + runs-on: ubuntu-22.04 + steps: + - name: Checkout the code + uses: actions/checkout@v4 + - name: Set up Rust + uses: https://github.com/dtolnay/rust-toolchain@stable + - name: Set up the Python toolchain + uses: actions/setup-python@v5 + with: + python-version: "3.13" + - name: Run Rust tests + run: cargo test