Adding spruce to alerts #730
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: Tests | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out the repository | |
| uses: actions/checkout@v4 | |
| - name: Cache uv | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/uv | |
| key: uv-${{ runner.os }}-${{ hashFiles('uv.lock') }} | |
| - name: Start World Broker | |
| uses: namoshek/rabbitmq-github-action@v1 | |
| with: | |
| version: "3.9.13" | |
| ports: "1885:1885 4369:4369 5672:5672 15672:15672 15674:15674 25672:25672" | |
| config: ${{ github.workspace }}/.ci/rabbitmq.conf | |
| container-name: "rabbit" | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install uv | |
| run: | | |
| curl -LsSf https://astral.sh/uv/install.sh | sh | |
| echo "$HOME/.cargo/bin" >> $GITHUB_PATH | |
| - name: Create virtual environment | |
| run: | | |
| make venv | |
| - name: Sync dependencies and install project | |
| run: | | |
| make dev | |
| - name: Run tests | |
| run: | | |
| make test |