Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make use of multi-python pixi #224

Merged
merged 4 commits into from
Apr 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 24 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
lint:
runs-on: ubuntu-latest
Expand All @@ -18,32 +22,39 @@ jobs:
uses: actions/setup-python@v2
- name: Run pre-commit
uses: pre-commit/[email protected]

test:
runs-on: ubuntu-latest
name: ${{ matrix.pixi-environment }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version:
- "3.9"
- "3.10"
- "3.12"
os:
- ubuntu-latest
- macOS-latest
- windows-latest
pixi-environment:
- py312
- py311
- py310
steps:
- name: Check out repo
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup Pixi
uses: prefix-dev/setup-pixi@v0.3.0
- name: Setup older Python versions
run: pixi add python=${{ matrix.python-version }}
uses: prefix-dev/setup-pixi@v0.5.1
with:
manifest-path: pyproject.toml
- name: Run Tests
run: pixi run test
run: pixi run --environment ${{ matrix.pixi-environment }} test

build:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup Pixi
uses: prefix-dev/[email protected]
uses: prefix-dev/[email protected]
with:
manifest-path: pyproject.toml
- name: Run Tests
run: pixi run test
- name: Publish Code Coverage
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ venv/
ENV/
env.bak/
venv.bak/
.pixi/

# Spyder project settings
.spyderproject
Expand All @@ -116,3 +115,8 @@ venv.bak/

# mypy
.mypy_cache/

# pixi environments
.pixi
*.egg-info

Loading
Loading