Skip to content

Commit

Permalink
chore: move to pixi
Browse files Browse the repository at this point in the history
  • Loading branch information
aalexmmaldonado committed Nov 8, 2024
1 parent 4e5dd1a commit 602792f
Show file tree
Hide file tree
Showing 14 changed files with 8,078 additions and 9,550 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# GitHub syntax highlighting
pixi.lock linguist-language=YAML linguist-generated=true
25 changes: 6 additions & 19 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,14 @@ jobs:
with:
lfs: true

- name: Install miniconda
uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
auto-update-conda: true
python-version: "3.12"

- name: Initialize conda environment
run: make conda-create

- name: Setup conda
run: make conda-setup

- name: Install conda dependencies
run: make from-conda-lock
- name: Install pixi
uses: prefix-dev/[email protected]

- name: Install package dependencies
run: make install
- name: Setup environment
run: pixi install

- name: Run tests and coverage
run: make test
- name: Get test coverage
run: pixi run tests

- name: Upload to Codecov
uses: codecov/codecov-action@v4
Expand Down
23 changes: 5 additions & 18 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,27 +33,14 @@ jobs:
with:
fetch-depth: 0

- name: Install miniconda
uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
auto-update-conda: true
python-version: "3.12"

- name: Initialize conda environment
run: make conda-create

- name: Setup conda
run: make conda-setup

- name: Install conda dependencies
run: make from-conda-lock
- name: Install pixi
uses: prefix-dev/[email protected]

- name: Install docs dependenices
run: make docs-env
- name: Setup environment
run: pixi install

- name: Build documentation
run: make docs
run: pixi run docs

- name: Setup Pages
uses: actions/configure-pages@v5
Expand Down
19 changes: 5 additions & 14 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,16 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]

steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Install miniconda
uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
auto-update-conda: true
python-version: ${{ matrix.python-version }}
- name: Install pixi
uses: prefix-dev/[email protected]

- name: Install package
run: |
pip install pytest pytest-cov pytest-html coverage colorama
pip install .
- name: Setup environment
run: pixi install

- name: Run tests
run: pytest -c pyproject.toml --cov=vaxstats --cov-report=xml --junit-xml=report.xml --color=yes tests/
run: pixi run tests
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -629,3 +629,7 @@ psi.*.clean

tests/tmp/*
!tests/tmp/.gitkeep

# pixi environments
.pixi
*.egg-info
31 changes: 0 additions & 31 deletions .pre-commit-config.yaml

This file was deleted.

224 changes: 0 additions & 224 deletions Makefile

This file was deleted.

Loading

0 comments on commit 602792f

Please sign in to comment.