1
0
Fork 0
mirror of https://github.com/dragonflydb/dragonfly.git synced 2024-12-14 11:58:02 +00:00

fix: pre-commit ci workflow (#3917)

* fix: pre-commit ci workflow


Signed-off-by: kostas <kostas@dragonflydb.io>
This commit is contained in:
Kostas Kyrimis 2024-10-15 12:15:57 +03:00 committed by GitHub
parent f455981927
commit d2a83121e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 11 deletions

View file

@ -21,8 +21,9 @@ jobs:
- uses: actions/setup-python@v5
- name: Install dependencies
run: |
python -m venv venv
source venv/bin/activate
python -m pip install pre-commit
python -m pip freeze --local
lsblk -l
echo "sda rotational = $(cat /sys/block/sda/queue/rotational)"
echo "sdb rotational = $(cat /sys/block/sdb/queue/rotational)"
@ -31,7 +32,9 @@ jobs:
path: ~/.cache/pre-commit
key: pre-commit|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
- name: Run pre-commit checks
run: pre-commit run --show-diff-on-failure --color=always --from-ref HEAD^ --to-ref HEAD
run:
source venv/bin/activate
pre-commit run --show-diff-on-failure --color=always --from-ref HEAD^ --to-ref HEAD
shell: bash
build:
strategy:

View file

@ -17,9 +17,6 @@ jobs:
options: --security-opt seccomp=unconfined --sysctl "net.ipv6.conf.all.disable_ipv6=0"
strategy:
fail-fast: false
matrix:
PYTHON_VERSION:
- "3.10"
name: "Run tests: "
permissions:
pull-requests: write
@ -39,10 +36,6 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-python@v5
with:
cache-dependency-path: tests/fakeredis/poetry.lock
python-version: ${{ matrix.PYTHON_VERSION }}
- name: Install dependencies
env:
@ -50,7 +43,7 @@ jobs:
shell: bash
working-directory: tests/fakeredis
run: |
python -m pip --quiet install poetry
pip install poetry
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
poetry install
- name: Configure CMake
@ -135,7 +128,7 @@ jobs:
- uses: actions/setup-python@v5
with:
cache-dependency-path: tests/fakeredis/poetry.lock
python-version: "3.12"
python-version: "3.10"
- name: Merge html results
run: |