mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 10:25:47 +02:00
fix: pre-commit ci workflow (#3917)
* fix: pre-commit ci workflow Signed-off-by: kostas <kostas@dragonflydb.io>
This commit is contained in:
parent
f455981927
commit
d2a83121e4
2 changed files with 7 additions and 11 deletions
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
|
@ -21,8 +21,9 @@ jobs:
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v5
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
|
python -m venv venv
|
||||||
|
source venv/bin/activate
|
||||||
python -m pip install pre-commit
|
python -m pip install pre-commit
|
||||||
python -m pip freeze --local
|
|
||||||
lsblk -l
|
lsblk -l
|
||||||
echo "sda rotational = $(cat /sys/block/sda/queue/rotational)"
|
echo "sda rotational = $(cat /sys/block/sda/queue/rotational)"
|
||||||
echo "sdb rotational = $(cat /sys/block/sdb/queue/rotational)"
|
echo "sdb rotational = $(cat /sys/block/sdb/queue/rotational)"
|
||||||
|
@ -31,7 +32,9 @@ jobs:
|
||||||
path: ~/.cache/pre-commit
|
path: ~/.cache/pre-commit
|
||||||
key: pre-commit|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
|
key: pre-commit|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
|
||||||
- name: Run pre-commit checks
|
- 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
|
shell: bash
|
||||||
build:
|
build:
|
||||||
strategy:
|
strategy:
|
||||||
|
|
11
.github/workflows/test-fakeredis.yml
vendored
11
.github/workflows/test-fakeredis.yml
vendored
|
@ -17,9 +17,6 @@ jobs:
|
||||||
options: --security-opt seccomp=unconfined --sysctl "net.ipv6.conf.all.disable_ipv6=0"
|
options: --security-opt seccomp=unconfined --sysctl "net.ipv6.conf.all.disable_ipv6=0"
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
|
||||||
PYTHON_VERSION:
|
|
||||||
- "3.10"
|
|
||||||
name: "Run tests: "
|
name: "Run tests: "
|
||||||
permissions:
|
permissions:
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
|
@ -39,10 +36,6 @@ jobs:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- uses: actions/setup-python@v5
|
|
||||||
with:
|
|
||||||
cache-dependency-path: tests/fakeredis/poetry.lock
|
|
||||||
python-version: ${{ matrix.PYTHON_VERSION }}
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
env:
|
env:
|
||||||
|
@ -50,7 +43,7 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
working-directory: tests/fakeredis
|
working-directory: tests/fakeredis
|
||||||
run: |
|
run: |
|
||||||
python -m pip --quiet install poetry
|
pip install poetry
|
||||||
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
|
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
|
||||||
poetry install
|
poetry install
|
||||||
- name: Configure CMake
|
- name: Configure CMake
|
||||||
|
@ -135,7 +128,7 @@ jobs:
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
cache-dependency-path: tests/fakeredis/poetry.lock
|
cache-dependency-path: tests/fakeredis/poetry.lock
|
||||||
python-version: "3.12"
|
python-version: "3.10"
|
||||||
|
|
||||||
- name: Merge html results
|
- name: Merge html results
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue