Skip to content

Commit

Permalink
test pixi
Browse files Browse the repository at this point in the history
  • Loading branch information
hadim committed Nov 30, 2023
1 parent c23d273 commit a4822b5
Show file tree
Hide file tree
Showing 5 changed files with 31,467 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# GitHub syntax highlighting
pixi.lock linguist-language=YAML

69 changes: 69 additions & 0 deletions .github/workflows/test-with-pixi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: test-with-pixi

on:
push:
branches: ["main"]
tags: ["*"]
pull_request:
branches:
- "*"
- "!gh-pages"
schedule:
- cron: "0 4 * * MON"

jobs:
test:
strategy:
fail-fast: false
matrix:
# NOTE(hadim): for now we cannot test a matrix since it does not seem
# to be supported by pixi yet.
# python-version: ["3.10", "3.11"]
# os: ["ubuntu-latest", "macos-latest", "windows-latest"]
# rdkit-version: ["2023.03", "2023.09"]
python-version: ["3.11"]
os: ["ubuntu-latest"]
rdkit-version: ["2023.09"]

runs-on: ${{ matrix.os }}
timeout-minutes: 30

defaults:
run:
shell: pixi run bash {0}

name: |
os=${{ matrix.os }}
- python=${{ matrix.python-version }}
- rdkit=${{ matrix.rdkit-version }}
steps:
- name: Checkout the code
uses: actions/checkout@v3

- uses: prefix-dev/[email protected]
with:
pixi-version: v0.9.1
cache: true
locked: true
frozen: false
log-level: default # one of `q`, `default`, `v`, `vv`, or `vvv`.

- name: Install library
run: python -m pip install --no-deps -e . # `-e` required for correct `coverage` run.

- name: Run tests
run: pytest

- name: Codecov Upload
uses: codecov/codecov-action@v3
with:
files: ./coverage.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: false
verbose: false
env_vars: ${{ matrix.os }},${{ matrix.python-version }},${{ matrix.rdkit-version }}

- name: Test building the doc
run: mkdocs build
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,6 @@ site/

.idea/
__pycache__
# pixi environments
.pixi

Loading

0 comments on commit a4822b5

Please sign in to comment.