Skip to content

chore(ci): Update GitHub Actions #215

chore(ci): Update GitHub Actions

chore(ci): Update GitHub Actions #215

name: Backends - Python Bindings
on:
push:
branches: [main]
paths:
- crates/pixi-build-backend/**
- Cargo.*
- pixi-build-backends/py-pixi-build-backend/**
- .github/workflows/backends-python-bindings.yml
pull_request:
paths:
- crates/pixi-build-backend/**
- Cargo.*
- pixi-build-backends/py-pixi-build-backend/**
- .github/workflows/backends-python-bindings.yml
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
env:
PYTHONIOENCODING: utf-8
jobs:
format_lint_test:
name: Test the Python bindings
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
submodules: recursive
persist-credentials: false
- uses: prefix-dev/setup-pixi@a0af7a228712d6121d37aba47adf55c1332c9c2e # v0.9.4
with:
manifest-path: pixi-build-backends/py-pixi-build-backend/pixi.toml
environments: ci
- name: Run clippy
run: |
cd pixi-build-backends/py-pixi-build-backend
pixi run -e ci lint
- name: Run tests
run: |
cd pixi-build-backends/py-pixi-build-backend
pixi run -e ci test --color=yes