chore: update pre-commit hooks #234
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-tests | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - "main" | |
| - "v*x" | |
| - "!conda-lock-auto-update" | |
| - "!pre-commit-ci-update-config" | |
| - "!dependabot/*" | |
| tags: | |
| - "v*" | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| tests: | |
| name: "tests py${{ matrix.python-version }}" | |
| runs-on: "ubuntu-latest" | |
| defaults: | |
| run: | |
| shell: bash -l {0} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.9", "3.10", "3.11", "3.12"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: "conda install" | |
| uses: conda-incubator/setup-miniconda@v3 | |
| with: | |
| miniforge-variant: Miniforge3 | |
| miniforge-version: latest | |
| python-version: ${{ matrix.python-version }} | |
| activate-environment: mo-pack-dev | |
| environment-file: requirements/mo_pack.yml | |
| auto-update-conda: false | |
| auto-activate-base: false | |
| - name: "conda configuration" | |
| run: | | |
| conda info | |
| conda list --explicit | |
| - name: "test with py${{ matrix.python-version }}" | |
| run: | | |
| python setup.py build_ext --inplace | |
| pytest |