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

Feature/pixi2 #4

Closed
wants to merge 3 commits into from
Closed
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
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,6 @@
*.pkl filter=lfs diff=lfs merge=lfs -text
# numpy file format
*.npy filter=lfs diff=lfs merge=lfs -text
# GitHub syntax highlighting
pixi.lock linguist-language=YAML

4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,7 @@ updates:
#try to group all third party library updates into a single pr
patterns:
- "*"
- package-ecosystem: github-actions
directory: /
schedule:
interval: monthly
93 changes: 60 additions & 33 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,39 +12,66 @@ on:
permissions:
contents: read

jobs:

black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: psf/black@stable
ruff:
runs-on: ubuntu-latest
needs: [black]
steps:
- uses: actions/checkout@v3
- uses: chartboost/ruff-action@v1
build:
jobs:
ci:
runs-on: ubuntu-latest
needs: [ruff]
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flit
flit install --extras test
- run: |
pylint $(git ls-files '*.py')
- name: Test with pytest
run: |
coverage run -m pytest
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pixi
uses: prefix-dev/[email protected]
with:
pixi-version: v0.22.0
cache: true
auth-host: prefix.dev
auth-token: ${{ secrets.PREFIX_DEV_TOKEN }}
- name: Format and lint
run: |
pixi run fmt
pixi run lint
- name: Assert no changes
run: |
git diff --exit-code
- name: Test
run: |
pixi run coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

# jobs:


# black:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: psf/black@stable
# ruff:
# runs-on: ubuntu-latest
# needs: [black]
# steps:
# - uses: actions/checkout@v3
# - uses: chartboost/ruff-action@v1
# build:
# runs-on: ubuntu-latest
# needs: [ruff]
# steps:
# - uses: actions/checkout@v3
# - name: Set up Python 3.10
# uses: actions/setup-python@v3
# with:
# python-version: "3.10"
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install flit
# flit install --extras test
# - run: |
# pylint $(git ls-files '*.py')
# - name: Test with pytest
# run: |
# coverage run -m pytest

4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -164,3 +164,7 @@ cython_debug/
#COLCON
install/**
log/**
# pixi environments
.pixi
*.egg-info

Loading
Loading