Skip to content

Commit

Permalink
add pixi (#123)
Browse files Browse the repository at this point in the history
* add pixi

* update pixi

* don't specify versions

* pixi add basic test

* use pixi in github action

* pixi add flake8 dependency

* pixi: use clang for windows
  • Loading branch information
looooo authored Sep 23, 2024
1 parent 931d18f commit 46d4824
Show file tree
Hide file tree
Showing 5 changed files with 8,476 additions and 22 deletions.
25 changes: 5 additions & 20 deletions .github/workflows/test-env-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,14 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
python-version: ["3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v2
name: Checkout

- uses: conda-incubator/setup-miniconda@v2
- uses: prefix-dev/setup-[email protected]
with:
python-version: "3.11"

- name: install conda build
run: |
conda install conda-build
- if: matrix.os == 'ubuntu-latest'
name: Lint with flake8
run: |
conda install flake8
sudo apt-get install freeglut3 freeglut3-dev
sudo ln -s /usr/lib/x86_64-linux-gnu/ /usr/lib64
${CONDA}/bin/flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics --exclude=.svn,CVS,.bzr,.hg,.git,__pycache__,.tox,.eggs,*.egg,scons,SoPyScript
- name: create package with conda
run: |
cd packaging;
conda build . -c conda-forge --python=${{ matrix.python-version }}
pixi-version: v0.30.0
cache: true
- run: pixi run lint
- run: pixi run test
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ SoPyScript/swigpyrun.h
examples/SoPyScript/examin
examples/SoPyScript/swigpyrun.h
CMakeCache.txt
# pixi environments
.pixi
*.egg-info
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
project(pivy_cmake_setup CXX)
cmake_minimum_required(VERSION 3.18)
project(pivy)


option(DISABLE_SWIG_WARNINGS "if on no swig warnings are shown" OFF)
option(PIVY_USE_QT6 "Prefer Qt6 over Qt5 if available" OFF)
Expand Down
Loading

0 comments on commit 46d4824

Please sign in to comment.