migrate to raygeo 0.10.0 #1774
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 and Test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - "*" | |
| pull_request: | |
| branches: | |
| - "**" | |
| workflow_call: | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| fetch-tags: true | |
| - name: Install Pixi | |
| uses: prefix-dev/setup-pixi@v0.9.4 | |
| with: | |
| pixi-version: v0.68.1 | |
| cache: true | |
| cache-key: pixi-${{ runner.os }}-${{ hashFiles('pixi.lock') }} | |
| - name: Setup environment | |
| run: pixi install | |
| - name: Compile Translations | |
| run: pixi run compile-translations | |
| - name: Run flake8 Lint | |
| run: pixi run lint | |
| test-backend: | |
| name: Backend Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| fetch-tags: true | |
| - name: Install Pixi | |
| uses: prefix-dev/setup-pixi@v0.9.4 | |
| with: | |
| pixi-version: v0.68.1 | |
| cache: true | |
| cache-key: pixi-${{ runner.os }}-${{ hashFiles('pixi.lock') }} | |
| - name: Setup environment | |
| run: pixi install | |
| - name: Compile Translations | |
| run: pixi run compile-translations | |
| - name: Run backend tests | |
| run: pixi run test -m "not ui and not stress" --log-cli-level=DEBUG | |
| test-stress: | |
| name: Stress Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| fetch-tags: true | |
| - name: Install Pixi | |
| uses: prefix-dev/setup-pixi@v0.9.4 | |
| with: | |
| pixi-version: v0.68.1 | |
| cache: true | |
| cache-key: pixi-${{ runner.os }}-${{ hashFiles('pixi.lock') }} | |
| - name: Setup environment | |
| run: pixi install | |
| - name: Compile Translations | |
| run: pixi run compile-translations | |
| - name: Run stress tests | |
| run: pixi run test -m stress --log-cli-level=DEBUG | |
| test-ui: | |
| name: UI Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| fetch-tags: true | |
| - name: Install Pixi | |
| uses: prefix-dev/setup-pixi@v0.9.4 | |
| with: | |
| pixi-version: v0.68.1 | |
| cache: true | |
| cache-key: pixi-${{ runner.os }}-${{ hashFiles('pixi.lock') }} | |
| - name: Setup environment | |
| run: pixi install | |
| - name: Install Xvfb | |
| run: sudo apt-get update && sudo apt-get install -y xvfb | |
| - name: Compile Translations | |
| run: pixi run compile-translations | |
| - name: Run UI tests | |
| run: xvfb-run pixi run uitest --log-cli-level=DEBUG |