CI #2519
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - "main" | |
| pull_request: | |
| branches: | |
| - "main" | |
| schedule: | |
| - cron: "0 0 * * *" | |
| workflow_dispatch: | |
| defaults: | |
| run: | |
| shell: bash -l {0} | |
| jobs: | |
| test: | |
| name: ${{ matrix.cfg.os }}, 🐍=${{ matrix.python-version }}, program=${{ matrix.cfg.conda-env }}, pydantic=${{ matrix.pydantic-version }} | |
| runs-on: ${{ matrix.cfg.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: | |
| - "3.10" | |
| pydantic-version: | |
| - "2" | |
| cfg: | |
| - os: ubuntu-latest | |
| conda-env: basic | |
| - os: macOS-12 | |
| conda-env: basic | |
| - os: macOS-latest | |
| conda-env: basic | |
| - os: ubuntu-latest | |
| conda-env: psi4 | |
| env: | |
| OE_LICENSE: ${{ github.workspace }}/oe_license.txt | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Conda Environment | |
| uses: mamba-org/setup-micromamba@v1 | |
| with: | |
| environment-file: devtools/conda-envs/${{ matrix.cfg.conda-env }}.yaml | |
| create-args: >- | |
| python=${{ matrix.python-version }} | |
| pydantic=${{ matrix.pydantic-version }} | |
| - name: License OpenEye | |
| 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 | |
| run: python -m pip install . | |
| - name: Run Tests | |
| run: | | |
| python -m pytest -r xfEs -n logical --cov=openff --cov-config=setup.cfg openff/qcsubmit/_tests/ --cov-report=xml | |
| - name: Run example notebooks | |
| env: | |
| PYTEST_ARGS: -p no:randomly -r fE -v -x --tb=short -nauto | |
| NB_ARGS: --nbval-lax --dist loadscope | |
| run: | | |
| python -m pytest $PYTEST_ARGS $NB_ARGS examples | |
| - name: Codecov | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| file: ./coverage.xml | |
| fail_ci_if_error: true |