Skip to content

Bump mamba-org/setup-micromamba from 1 to 2 #1953

Bump mamba-org/setup-micromamba from 1 to 2

Bump mamba-org/setup-micromamba from 1 to 2 #1953

Workflow file for this run

name: tests
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
schedule:
- cron: "0 0 * * *"
jobs:
test:
name: Test on ${{ matrix.os }}, Python ${{ matrix.python-version }}, ${{ matrix.toolkits }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.10", "3.11"]
toolkits: ["rdkit_and_openeye", "rdkit"]
pydantic-version: ["1"]
env:
OE_LICENSE: ${{ github.workspace }}/oe_license.txt
steps:
- uses: actions/checkout@v4
- name: Setup Conda Environment
uses: mamba-org/setup-micromamba@v2
with:
environment-file: devtools/conda-envs/test_env_${{ matrix.toolkits }}.yaml
create-args: >-
python=${{ matrix.python-version }}
pydantic=${{ matrix.pydantic-version }}
- name: License OpenEye
if: ${{ matrix.toolkits != 'rdkit' }}
shell: bash -l {0}
run: |
echo "${SECRET_OE_LICENSE}" > ${OE_LICENSE}
python -c "from openeye import oechem; assert oechem.OEChemIsLicensed()"
env:
SECRET_OE_LICENSE: ${{ secrets.OE_LICENSE }}
- name: Install Package
shell: bash -l {0}
run: |
python -m pip install -e .
- name: Conda Environment Information
shell: bash -l {0}
run: |
conda info
conda list
- name: Run Tests
shell: bash -l {0}
run: |
pytest -v -n auto --cov=openff openff/recharge/_tests/ --cov-report=xml
- name: CodeCov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
fail_ci_if_error: false