build(deps): bump the ci-dependencies group with 6 updates #119
Workflow file for this run
This file contains 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: "Python CI" | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
env: | |
PIP_NO_CACHE_DIR: false | |
PIP_USER: 1 | |
PYTHONUSERBASE: ${{ github.workspace }}/.cache/py-user-base | |
PRE_COMMIT_HOME: ${{ github.workspace }}/.cache/pre-commit-cache | |
steps: | |
- name: "Add custom PYTHONUSERBASE to PATH" | |
run: echo '${{ env.PYTHONUSERBASE }}/bin/' >> $GITHUB_PATH | |
- name: "Checkout repository" | |
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
- name: "Setup Python" | |
id: python | |
uses: HassanAbouelela/actions/setup-python@setup-python_v1.6.0 # 1.4.0 | |
with: | |
python_version: '3.x' | |
install_args: "--with dev" | |
# As pre-commit does not support user installs, we set | |
# PIP_USER=0 to not do a user install. | |
- name: "Run pre-commit hooks" | |
run: export PIP_USER=0; pre-commit run --all-files | |
test: | |
needs: pre-commit | |
strategy: | |
matrix: | |
os: [ ubuntu-latest ] | |
python_version: [ "3.11" ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: "Checkout repository" | |
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
- name: "Setup Python" | |
uses: HassanAbouelela/actions/setup-python@setup-python_v1.6.0 # 1.4.0 | |
with: | |
python_version: "${{ matrix.python_version }}" | |
install_args: "--with dev" | |
- name: "Run tests" | |
run: python -m pytest |