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

[WIP] Experiment with pixi for CI #218

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
@@ -0,0 +1,3 @@
# GitHub syntax highlighting
pixi.lock linguist-language=YAML

32 changes: 32 additions & 0 deletions .github/workflows/test-with-pixi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ jobs:
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"]
Expand All @@ -35,3 +40,30 @@ jobs:
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
10 changes: 7 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11"]
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
rdkit-version: ["2023.03", "2023.09"]
# NOTE(hadim): temporary for pixi testing
# 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
Expand Down
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