clean ups for 2.5.0 release #1667
Workflow file for this run
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: | |
| # run weekly (see issue #186) | |
| schedule: | |
| - cron: "42 3 * * 6" | |
| push: | |
| branches: | |
| - "master" | |
| pull_request: | |
| branches: | |
| - "master" | |
| concurrency: | |
| group: "${{ github.ref }}-${{ github.head_ref }}-${{ github.workflow }}" | |
| cancel-in-progress: true | |
| defaults: | |
| run: | |
| shell: bash -l {0} | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: ["ubuntu-latest", "macOS-latest", "windows-latest"] | |
| python-version: ["3.11", "3.12", "3.13", "3.14"] | |
| # Only test lowest and highest version on the expensive/slow | |
| # macOS and windows runners (UPDATE when supported versions change): | |
| exclude: | |
| - os: macOS-latest | |
| python-version: 3.12 | |
| - os: macOS-latest | |
| python-version: 3.13 | |
| - os: windows-latest | |
| python-version: 3.12 | |
| - os: windows-latest | |
| python-version: 3.13 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: mamba-org/setup-micromamba@main | |
| with: | |
| environment-file: devtools/conda-envs/test_env.yaml | |
| environment-name: test | |
| create-args: | | |
| python=${{ matrix.python-version }} | |
| - name: Install package (with no dependencies) | |
| run: | | |
| python -m pip install . --no-deps | |
| - name: Run tests | |
| run: | | |
| pytest -v -n auto --cov=alchemlyb --cov-report=xml --color=yes src/alchemlyb/tests | |
| env: | |
| MPLBACKEND: agg | |
| - name: Codecov | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| name: codecov-${{ matrix.os }}-py${{ matrix.python-version }} | |
| file: ./coverage.xml | |
| fail_ci_if_error: true | |
| ruff: | |
| name: Ruff Lint & Format | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.12' | |
| - name: Install ruff | |
| run: pip install ruff | |
| - name: Ruff lint | |
| run: ruff check . | |
| - name: Ruff format check | |
| run: ruff format --check . | |
| mypy: | |
| name: Mypy Type Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.12' | |
| - name: Install package | |
| run: python -m pip install . | |
| - name: Install mypy | |
| run: pip install mypy pandas-stubs | |
| - name: Run mypy | |
| run: mypy src/alchemlyb |