force single version #186
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Lint | |
| on: [push, pull_request] | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Setup Node.js for use with actions | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 18.x | |
| - name: Set up rust | |
| uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| toolchain: '1.86.0' | |
| components: 'clippy' | |
| - name: Checkout branch | |
| uses: actions/checkout@v3 | |
| with: | |
| submodules: 'recursive' | |
| - name: Update submodules | |
| run: git submodule update --remote --recursive | |
| - name: Clean install JS dependencies | |
| working-directory: ./site | |
| run: yarn install --frozen-lockfile | |
| - name: Install wasm-pack | |
| run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | |
| - name: Run JS linter | |
| working-directory: ./site | |
| run: yarn lint --no-fix --max-warnings 0 | |
| - name: Set up python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.13.3' | |
| - name: Install pip requirements | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r scrapers/requirements.txt | |
| - name: Run Python linter | |
| run: black . --check | |
| - name: Rust tests | |
| working-directory: ./site | |
| run: | | |
| echo "Running cargo test" | |
| cargo test --release --manifest-path src/quacs-rs/Cargo.toml | |
| echo "Running wasm-pack test --node" | |
| time wasm-pack test --release --node src/quacs-rs | |
| - name: Run build | |
| working-directory: ./site | |
| run: yarn build |