Обновить .github/workflows/all_test3.yaml
This commit is contained in:
16
.github/workflows/all_test3.yaml
vendored
16
.github/workflows/all_test3.yaml
vendored
@@ -44,9 +44,15 @@ jobs:
|
||||
- name: Prepare prbot_data directory
|
||||
run: mkdir -p /home/runner/prbot_data && chmod -R 777 /home/runner/prbot_data
|
||||
|
||||
- name: Sanitize tag
|
||||
run: |
|
||||
TAG="${{ inputs.tag || github.head_ref || github.ref_name }}"
|
||||
SANITIZED_TAG=$(echo "$TAG" | tr '/' '-')
|
||||
echo "SANITIZED_TAG=$SANITIZED_TAG" >> $GITHUB_ENV
|
||||
|
||||
- name: Pull Docker image explicitly
|
||||
run: |
|
||||
docker pull cr.yandex/crp8vh46gd976oq8ipla/${{ github.event.repository.name }}:${{ env.effective_tag }}
|
||||
docker pull cr.yandex/crp8vh46gd976oq8ipla/${{ github.event.repository.name }}:${{ env.SANITIZED_TAG }}
|
||||
|
||||
- name: Setup SSH access to Gitea
|
||||
run: |
|
||||
@@ -72,11 +78,11 @@ jobs:
|
||||
|
||||
- name: Ruff format check (strict)
|
||||
run: |
|
||||
echo "Starting Ruff format check with tag: ${{ env.effective_tag }}"
|
||||
echo "Starting Ruff format check with tag: ${{ env.SANITIZED_TAG }}"
|
||||
|
||||
docker run --rm \
|
||||
-v /home/runner/prbot_data:/tmp \
|
||||
cr.yandex/crp8vh46gd976oq8ipla/${{ github.event.repository.name }}:${{ env.effective_tag }} \
|
||||
cr.yandex/crp8vh46gd976oq8ipla/${{ github.event.repository.name }}:${{ env.SANITIZED_TAG }} \
|
||||
bash -c '
|
||||
pip install ruff
|
||||
cd /server
|
||||
@@ -92,7 +98,7 @@ jobs:
|
||||
run: |
|
||||
docker run --rm \
|
||||
-v /home/runner/prbot_data:/tmp \
|
||||
cr.yandex/crp8vh46gd976oq8ipla/${{ github.event.repository.name }}:${{ env.effective_tag }} \
|
||||
cr.yandex/crp8vh46gd976oq8ipla/${{ github.event.repository.name }}:${{ env.SANITIZED_TAG }} \
|
||||
bash -c '
|
||||
pip install ruff pytest pytest-github-actions-annotate-failures
|
||||
echo "=== Ruff ==="
|
||||
@@ -114,7 +120,7 @@ jobs:
|
||||
--network hub-network \
|
||||
-v /home/runner/prbot_data:/tmp \
|
||||
-e GITEASSH="$(echo "${{ secrets.GITEASSH }}" | tr -d '\n')" \
|
||||
cr.yandex/crp8vh46gd976oq8ipla/${{ github.event.repository.name }}:${{ env.effective_tag }} \
|
||||
cr.yandex/crp8vh46gd976oq8ipla/${{ github.event.repository.name }}:${{ env.SANITIZED_TAG }} \
|
||||
bash -c '
|
||||
mkdir -p ~/.ssh
|
||||
echo "$GITEASSH" | base64 -d > ~/.ssh/id_rsa
|
||||
|
||||
Reference in New Issue
Block a user