Skip to content

add pixi build for easy install #52

add pixi build for easy install

add pixi build for easy install #52

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Python on pull request
on:
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
env:
OS: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
- name: Set up pixi environment
uses: prefix-dev/setup-pixi@v0.9.1
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
pixi run lint
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
pixi run lint "--exit-zero --max-complexity=10 --max-line-length=127"
- name: Install pointCollection
run: |
# install the package in editable mode
pip install --no-deps --editable .
- name: Test with pytest
run: |
pixi run coverage
- name: Archive code coverage results
uses: actions/upload-artifact@v4
with:
name: code-coverage-report-${{ matrix.os }}
path: coverage.xml