Pixi Setup (python) #17
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 | |
- uses: actions/cache@v4 | |
with: | |
path: ${{ env.pythonLocation }} | |
key: ${{ env.pythonLocation }}-${{ hashFiles('pixi.toml') }} | |
- name: Run Ruff Linter | |
run: | | |
pixi run --environment test-workflow ruff check docs/ obelisk/ tests/ --output-format=github | |
- name: Run Ruff Formatter | |
run: | | |
pixi run --environment test-workflow ruff format docs/ obelisk/ tests/ --diff | |
- name: Run Pyright | |
run: | | |
pixi run --environment test-workflow pyright | |
- name: Test with pytest | |
run: | | |
pixi run --environment test-workflow pytest |