Skip to content

Commit

Permalink
upgrade github actions (#353)
Browse files Browse the repository at this point in the history
  • Loading branch information
zubenkoivan authored Sep 16, 2024
1 parent 9a88a2c commit 814e239
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,23 @@ name: CI
on:
push:
branches: [master]
tags: [v*.*, v*.*.*]
tags: [v*]
pull_request:
branches: [master]
pull_request_target:
branches: [master]
schedule:
- cron: 0 4 * * *

jobs:
test:
name: Run tests
runs-on: ubuntu-latest
if: |
(github.event_name != 'pull_request_target' && github.actor != 'dependabot[bot]') ||
(github.event_name == 'pull_request_target' && github.actor == 'dependabot[bot]')
steps:
- name: Checkout commit
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Install python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Cache packages
Expand Down Expand Up @@ -59,7 +54,7 @@ jobs:
- name: Build Docker image
run: make docker_build
- name: Upload image artifact
uses: neuro-inc/upload-image-action@v21.9.2
uses: neuro-inc/upload-image-action@v24.4.0
with:
image: platformserviceaccountsapi
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -68,15 +63,15 @@ jobs:
name: Create release
needs: test
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
uses: neuro-inc/reuse/.github/workflows/release-service.yaml@v0.0.31
uses: neuro-inc/reuse/.github/workflows/release-service.yaml@v24.9.0
with:
image: platformserviceaccountsapi
helm_charts: platform-service-accounts

deploy_dev:
name: Deploy on dev
needs: release
uses: neuro-inc/reuse/.github/workflows/deploy-dev.yaml@v0.0.31
uses: neuro-inc/reuse/.github/workflows/deploy-dev.yaml@v24.9.0
with:
helm_charts: platform-service-accounts
version: ${{ needs.release.outputs.version }}
2 changes: 1 addition & 1 deletion .github/workflows/setup-automerge.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Enable auto-merge
on:
pull_request_target:
pull_request:
types: [opened]

permissions:
Expand Down
2 changes: 1 addition & 1 deletion requirements/test.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-e .
-r syntax.txt
codecov==2.1.13
docker==6.1.3
docker==7.1.0
pytest==7.4.2
pytest-asyncio==0.21.1
pytest-cov==4.1.0

0 comments on commit 814e239

Please sign in to comment.