Skip to content

Commit

Permalink
Dependabot, update CI to use pixi envs
Browse files Browse the repository at this point in the history
  • Loading branch information
Huite committed Jul 11, 2024
1 parent cdd6bc0 commit 793972a
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 18 deletions.
7 changes: 7 additions & 0 deletions .github/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"
48 changes: 30 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,49 +8,61 @@ on:
branches:
- main

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

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
- name: Run pre-commit
uses: pre-commit/action@v2.0.3

uses: pre-commit/action@v3.0.1
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"
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.8.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/setup-pixi@v0.3.0
uses: prefix-dev/setup-pixi@v0.8.1
with:
manifest-path: pyproject.toml
- name: Run Tests
run: pixi run test
- name: Publish Code Coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
- name: Build Docs
run: pixi run docs
- name: Deploy to Github Pages
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build
publish_dir: ./docs/_build

0 comments on commit 793972a

Please sign in to comment.