Skip to content

Commit

Permalink
Skip tests for now
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Oct 25, 2023
1 parent b7f14d3 commit fd7fc90
Showing 1 changed file with 51 additions and 51 deletions.
102 changes: 51 additions & 51 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,39 +82,39 @@ jobs:
- name: "Clippy (wasm)"
run: cargo clippy -p ruff_wasm --target wasm32-unknown-unknown --all-features -- -D warnings

cargo-test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
name: "cargo test | ${{ matrix.os }}"
steps:
- uses: actions/checkout@v4
- name: "Install Rust toolchain"
run: rustup show
- name: "Install cargo insta"
uses: taiki-e/install-action@v2
with:
tool: cargo-insta
- uses: Swatinem/rust-cache@v2
- name: "Run tests (Ubuntu)"
if: ${{ matrix.os == 'ubuntu-latest' }}
run: cargo insta test --all --all-features --unreferenced reject
- name: "Run tests (Windows)"
if: ${{ matrix.os == 'windows-latest' }}
shell: bash
# We can't reject unreferenced snapshots on windows because flake8_executable can't run on windows
run: cargo insta test --all --all-features
# Check for broken links in the documentation.
- run: cargo doc --all --no-deps
env:
# Setting RUSTDOCFLAGS because `cargo doc --check` isn't yet implemented (https://github.com/rust-lang/cargo/issues/10025).
RUSTDOCFLAGS: "-D warnings"
- uses: actions/upload-artifact@v3
if: ${{ matrix.os == 'ubuntu-latest' }}
with:
name: ruff
path: target/debug/ruff
# cargo-test:
# strategy:
# matrix:
# os: [ubuntu-latest, windows-latest]
# runs-on: ${{ matrix.os }}
# name: "cargo test | ${{ matrix.os }}"
# steps:
# - uses: actions/checkout@v4
# - name: "Install Rust toolchain"
# run: rustup show
# - name: "Install cargo insta"
# uses: taiki-e/install-action@v2
# with:
# tool: cargo-insta
# - uses: Swatinem/rust-cache@v2
# - name: "Run tests (Ubuntu)"
# if: ${{ matrix.os == 'ubuntu-latest' }}
# run: cargo insta test --all --all-features --unreferenced reject
# - name: "Run tests (Windows)"
# if: ${{ matrix.os == 'windows-latest' }}
# shell: bash
# # We can't reject unreferenced snapshots on windows because flake8_executable can't run on windows
# run: cargo insta test --all --all-features
# # Check for broken links in the documentation.
# - run: cargo doc --all --no-deps
# env:
# # Setting RUSTDOCFLAGS because `cargo doc --check` isn't yet implemented (https://github.com/rust-lang/cargo/issues/10025).
# RUSTDOCFLAGS: "-D warnings"
# - uses: actions/upload-artifact@v3
# if: ${{ matrix.os == 'ubuntu-latest' }}
# with:
# name: ruff
# path: target/debug/ruff

cargo-fuzz:
runs-on: ubuntu-latest
Expand All @@ -132,24 +132,24 @@ jobs:
tool: [email protected]
- run: cargo fuzz build -s none

cargo-test-wasm:
runs-on: ubuntu-latest
name: "cargo test (wasm)"
steps:
- uses: actions/checkout@v4
- name: "Install Rust toolchain"
run: rustup target add wasm32-unknown-unknown
- uses: actions/setup-node@v3
with:
node-version: 18
cache: "npm"
cache-dependency-path: playground/package-lock.json
- uses: jetli/[email protected]
- uses: Swatinem/rust-cache@v2
- name: "Run wasm-pack"
run: |
cd crates/ruff_wasm
wasm-pack test --node
# cargo-test-wasm:
# runs-on: ubuntu-latest
# name: "cargo test (wasm)"
# steps:
# - uses: actions/checkout@v4
# - name: "Install Rust toolchain"
# run: rustup target add wasm32-unknown-unknown
# - uses: actions/setup-node@v3
# with:
# node-version: 18
# cache: "npm"
# cache-dependency-path: playground/package-lock.json
# - uses: jetli/[email protected]
# - uses: Swatinem/rust-cache@v2
# - name: "Run wasm-pack"
# run: |
# cd crates/ruff_wasm
# wasm-pack test --node

scripts:
name: "test scripts"
Expand Down

0 comments on commit fd7fc90

Please sign in to comment.