Fix ffutils failing bleeding edge tests #1441
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 * * *" | |
| jobs: | |
| test: | |
| if: github.event.pull_request.draft == false | |
| name: forcefield utilities Tests on ${{ matrix.os }} with Python ${{ matrix.python-version }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ macOS-latest, ubuntu-latest ] | |
| python-version: ["3.10", "3.11", "3.12", "3.13"] | |
| defaults: | |
| run: | |
| shell: bash -l {0} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| name: Checkout Branch | |
| - name: Install Mamba | |
| uses: mamba-org/setup-micromamba@v2 | |
| with: | |
| environment-file: environment-dev.yml | |
| create-args: >- | |
| python=${{ matrix.python-version }} | |
| - name: Install Package | |
| run: python -m pip install -e . | |
| - name: Run Tests (OS -> ${{ matrix.os }} / Python -> ${{ matrix.python-version }}) | |
| run: | | |
| python -m pytest -v --color yes forcefield_utilities/tests --cov | |
| coverage xml | |
| - name: Upload coverage reports to Codecov | |
| uses: codecov/codecov-action@v5 | |
| bleeding-edge-test: | |
| if: github.event.pull_request.draft == false | |
| name: Bleeding Edge mosdef Tests for ffutils | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| shell: bash -l {0} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| name: Checkout Branch / Pull Request | |
| - name: Install Mamba | |
| uses: mamba-org/setup-micromamba@v2 | |
| with: | |
| environment-file: environment-dev.yml | |
| create-args: >- | |
| python=3.13 | |
| - name: Install Packages from Source | |
| run: | | |
| pip install -e . | |
| - name: Run Bleeding Edge Tests | |
| run: | | |
| python -m pytest -v --color yes --pyargs forcefield_utilities |