Skip to content

Commit

Permalink
HH-244545 Update github action
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyGladkov committed Jan 17, 2025
1 parent d2016e5 commit 6b84e49
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 47 deletions.
34 changes: 0 additions & 34 deletions .github/workflows/cache-cleanup.yml

This file was deleted.

27 changes: 14 additions & 13 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,29 @@
---
name: Python package
'on':
"on":
pull_request:
branches: ["master"]
push:
branches: ["master"] # cache from master shared with child branches
branches: ["master"] # cache from master shared with child branches

jobs:
build:

runs-on: ubuntu-latest
runs-on: infra-k8s-runner
container:
image: registry.pyn.ru/python3.11-node22-bullseye-building:2024.10.10
credentials:
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}

steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
- name: Checkout
uses: https://src.pyn.ru/actions/checkout@v4
with:
fetch-depth: 0

- name: Install python
uses: actions/setup-python@v4
id: pinstall
- uses: webfactory/[email protected]
with:
python-version-file: pyproject.toml
cache: pip
cache-dependency-path: |
poetry.lock
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

- name: Install poetry
run: |
Expand All @@ -37,7 +39,6 @@ jobs:
# true if cache-hit occured on the primary key
- run: echo '${{ steps.pinstall.outputs.cache-hit }}'

# - name: Lint with flake8
# run: |
# # stop the build if there are Python syntax errors or undefined names
Expand Down

0 comments on commit 6b84e49

Please sign in to comment.