chore(deps): update pre-commit hook charliermarsh/ruff-pre-commit to v0.8.5 #3328
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
on: | |
push: | |
branches: | |
- develop | |
pull_request: | |
branches: | |
- develop | |
name: Run tests | |
jobs: | |
checks: | |
name: Checks | |
runs-on: ubuntu-latest | |
container: fedorapython/fedora-python-tox:latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install pre-commit | |
run: | | |
dnf install -y pre-commit git krb5-devel libpq-devel poetry python3-poetry-plugin-export | |
- name: Mark the working directory as safe for Git | |
run: git config --global --add safe.directory $PWD | |
- name: Run pre-commit checks | |
run: pre-commit run -v --all-files | |
licenses: | |
name: Licenses | |
runs-on: ubuntu-latest | |
container: fedorapython/fedora-python-tox:latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install RPM dependencies | |
run: | | |
dnf install -y pre-commit git krb5-devel libpq-devel poetry python3-poetry-plugin-export | |
- name: Check licenses for datanommer.${{ matrix.package }} | |
run: tox -e licenses | |
working-directory: datanommer.${{ matrix.package }} | |
strategy: | |
matrix: | |
package: | |
- models | |
- consumer | |
- commands | |
unit_tests: | |
name: Unit tests | |
runs-on: ubuntu-latest | |
container: fedorapython/fedora-python-tox:latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install RPM dependencies | |
run: | | |
dnf install -y timescaledb postgresql-server pre-commit git krb5-devel libpq-devel poetry python3-poetry-plugin-export | |
- name: Run unit tests for datanommer.${{ matrix.package }} | |
# Don't run the tests as root or pg_ctl will refuse to start | |
run: | | |
chown postgres:postgres . | |
sudo -u postgres tox -e ${{ matrix.pyver }} -- -vv | |
working-directory: datanommer.${{ matrix.package }} | |
# - name: Upload coverage to Codecov | |
# uses: codecov/codecov-action@v1 | |
# with: | |
# name: ${{ matrix.tox_env }} | |
# flags: unittests | |
# env_vars: PYTHON | |
# fail_ci_if_error: true | |
strategy: | |
matrix: | |
pyver: | |
- py310 | |
- py311 | |
package: | |
- models | |
- consumer | |
- commands |