Bump neuro-cli from 23.11.0 to 24.1.0 (#458) #2486
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [master] | |
tags: ["v*"] | |
pull_request: | |
branches: [master] | |
schedule: | |
- cron: 0 4 * * * | |
jobs: | |
test: | |
name: Run tests | |
runs-on: ubuntu-latest | |
env: | |
CLUSTER_NAME: default | |
CLIENT_TEST_E2E_USER_TOKEN: ${{ secrets.CLIENT_TEST_E2E_USER_TOKEN }} | |
CLIENT_TEST_E2E_USER_TOKEN_ALT: ${{ secrets.CLIENT_TEST_E2E_USER_TOKEN_ALT }} | |
steps: | |
- name: Checkout commit | |
uses: actions/checkout@v4 | |
- name: Install python | |
uses: actions/setup-python@v5 | |
with: | |
python-version-file: .python-version | |
cache: "pip" | |
cache-dependency-path: setup.cfg | |
- name: Install dependencies | |
run: make setup | |
- name: Lint | |
run: | | |
echo "::add-matcher::.github/actionlint-matcher.json" | |
make lint | |
env: | |
CI_LINT_RUN: 1 | |
- name: Build image | |
run: make docker-build | |
- name: Run tests | |
run: | | |
# Privileged mode is required only if docker-engine use aufs driver for storage | |
docker run --privileged -t \ | |
-e CLUSTER_NAME \ | |
-e CLIENT_TEST_E2E_USER_TOKEN \ | |
-e CLIENT_TEST_E2E_USER_TOKEN_ALT \ | |
platform-e2e:latest cluster-test | |
- name: Upload image artifact | |
uses: neuro-inc/upload-image-action@v21.9.2 | |
with: | |
image: platform-e2e | |
token: ${{ github.token }} | |
release: | |
name: Release package | |
runs-on: ubuntu-latest | |
needs: test | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') | |
steps: | |
- name: Checkout commit | |
uses: actions/checkout@v4 | |
- name: Purge old artifacts | |
uses: kolpav/purge-artifacts-action@v1 | |
with: | |
token: ${{ github.token }} | |
expire-in: 30mins | |
- name: Login to ghcr.io | |
uses: docker/login-action@v3.0.0 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ github.token }} | |
- name: Download image artifact | |
uses: actions/download-artifact@v4 | |
with: | |
name: image | |
- name: Push image | |
run: | | |
docker load --input platform-e2e.tar | |
TAG=${GITHUB_REF#refs/tags/v} | |
docker tag platform-e2e:latest ghcr.io/neuro-inc/platform-e2e:$TAG | |
docker tag platform-e2e:latest ghcr.io/neuro-inc/platform-e2e:latest | |
docker push -a ghcr.io/neuro-inc/platform-e2e |