Skip to content

phase 1.7: rate-limit enforcement (in-memory sliding window, 429 + Re… #27

phase 1.7: rate-limit enforcement (in-memory sliding window, 429 + Re…

phase 1.7: rate-limit enforcement (in-memory sliding window, 429 + Re… #27

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
test:
name: Test on Python ${{ matrix.python }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install
run: |
python -m pip install --upgrade pip
pip install -e '.[server,dev,crypto]'
- name: Lint (warnings only)
continue-on-error: true
run: |
ruff check zhub/ tests/ || true
- name: Test
run: |
pytest -v
kotlin-test:
name: Kotlin module test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '17'
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build + test kotlin module
working-directory: kotlin
run: |
gradle test build --no-daemon --stacktrace