Skip to content

fix: resolve pixi environment configuration warnings #9

fix: resolve pixi environment configuration warnings

fix: resolve pixi environment configuration warnings #9

Workflow file for this run

name: CI Framework
# CI/CD using Claire-s-Monster/ci-framework reusable workflow
# Provides change detection, quality gates, security scanning,
# performance benchmarks, and release automation
# Note: linux-64 only (pixi.lock constraint)
on:
push:
branches: [main, development]
pull_request:
branches: [main, development]
release:
types: [published]
workflow_dispatch:
inputs:
enable-performance:
description: 'Enable performance benchmarks'
required: false
default: true
type: boolean
permissions:
contents: write
pull-requests: write
issues: write
security-events: write
actions: read
id-token: write
env:
UCKN_DISABLE_TORCH: "1"
HF_HUB_DISABLE_PROGRESS_BARS: "1"
HF_HUB_DISABLE_TELEMETRY: "1"
jobs:
ci:
name: "CI Pipeline"
uses: Claire-s-Monster/ci-framework/.github/workflows/reusable-ci.yml@v2.2.0
with:
pixi-environment: 'quality'
python-versions: '["3.12"]'
os-matrix: '["ubuntu-latest"]' # pixi.lock only has linux-64 packages
enable-performance: ${{ github.event.inputs.enable-performance == 'true' || github.event_name != 'workflow_dispatch' }}
enable-release: ${{ github.ref == 'refs/heads/main' && github.event_name == 'release' }}
allowed-licenses: 'MIT, Apache-2.0, BSD-3-Clause, BSD-2-Clause, PSF-2.0, ISC, LGPL-3.0'
package-path: '.'
secrets: inherit
# Deploy to PyPI on release
deploy:
name: Deploy to PyPI
runs-on: ubuntu-latest
needs: [ci]
if: github.event_name == 'release'
environment: production
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup pixi
uses: prefix-dev/setup-pixi@v0.9.3
with:
pixi-version: v0.62.2
cache: true
run-install: true
- name: Install dev dependencies
run: pixi run dev
- name: Build package
run: pixi run --environment quality python -m build
- name: Check package
run: pixi run --environment quality twine check dist/*
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}