Pixi Setup (python) #3
Workflow file for this run
This file contains 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: Core Tests | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12.4' | |
- uses: prefix-dev/setup-pixi@v0.8.1 | |
with: | |
pixi-version: v0.24.2 | |
cache: true | |
auth-host: prefix.dev | |
auth-token: ${{ secrets.PREFIX_DEV_TOKEN }} | |
- uses: actions/cache@v4 | |
with: | |
path: ${{ env.pythonLocation }} | |
key: ${{ env.pythonLocation }}-${{ hashFiles('pixi.toml') }} | |
- name: Run Ruff Linter | |
run: | | |
pixi run ruff check docs/ obelisk/ tests/ --output-format=github --environment dev | |
- name: Run Ruff Formatter | |
run: | | |
pixi run ruff format docs/ obelisk/ tests/ --diff --environment dev | |
- name: Run Pyright | |
run: | | |
pixi run pyright --environment dev | |
- name: Test with pytest | |
run: | | |
pixi run pytest --environment dev |