Skip to content

test

test #959

Workflow file for this run

name: test
on:
push:
branches: ["main"]
tags: ["*"]
pull_request:
branches:
- "*"
- "!gh-pages"
schedule:
- cron: "0 4 * * MON"
jobs:
test:
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11"]
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
rdkit-version: ["2023.09", "2024.03"]
runs-on: ${{ matrix.os }}
timeout-minutes: 30
defaults:
run:
shell: bash -l {0}
name: |
os=${{ matrix.os }}
- python=${{ matrix.python-version }}
- rdkit=${{ matrix.rdkit-version }}
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Setup mamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: env.yml
environment-name: my_env
cache-environment: true
cache-downloads: true
create-args: >-
python=${{ matrix.python-version }}
rdkit=${{ matrix.rdkit-version }}
- 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@v4
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