Skip to content

Commit

Permalink
temporarily disabled ci steps
Browse files Browse the repository at this point in the history
  • Loading branch information
SheezZarR committed Jan 22, 2024
1 parent da065b7 commit e780ec5
Showing 1 changed file with 85 additions and 85 deletions.
170 changes: 85 additions & 85 deletions .github/workflows/bot-cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,93 +13,93 @@ env:
IMAGE_NAME: ${{ github.repository }}

jobs:
run-lint-and-formatting:
# checks for common errors, code style consistency...
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout the repository
uses: actions/checkout@v4

- name: Setup python
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Installing dependicies and running lint+formatting
run: |
make deps
make lint
- name: Check if changes happened...
run: if [ -n "$(git status --porcelain)" ]; then export GIT_STATUS=1; else export GIT_STATUS=0; fi

- name: Push changes
if: ${{ env.GIT_STATUS == 1 }}
run: |
git config user.name github-actions
git config user.email github-actions@github.com
git add .
git commit -m "Automated formatting and linting..."
git push

run-tests:
needs: run-lint-and-formatting
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout the repository
uses: actions/checkout@v4

- name: Setup python
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Installing deps
run: make deps

- name: Running tests
run: pytest

update-image:
# update docker images if requirements are changed
needs: run-tests
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Log in to the Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels)
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
# run-lint-and-formatting:
# # checks for common errors, code style consistency...
# runs-on: ubuntu-latest
# permissions:
# contents: write
# steps:
# - name: Checkout the repository
# uses: actions/checkout@v4
#
# - name: Setup python
# uses: actions/setup-python@v5
# with:
# python-version: '3.12'
#
# - name: Installing dependicies and running lint+formatting
# run: |
# make deps
# make lint

# - name: Check if changes happened...
# run: if [ -n "$(git status --porcelain)" ]; then export GIT_STATUS=1; else export GIT_STATUS=0; fi

# - name: Push changes
# if: ${{ env.GIT_STATUS == 1 }}
# run: |
# git config user.name github-actions
# git config user.email github-actions@github.com
# git add .
# git commit -m "Automated formatting and linting..."
# git push
#

# run-tests:
# needs: run-lint-and-formatting
# runs-on: ubuntu-latest
# permissions:
# contents: read
# steps:
# - name: Checkout the repository
# uses: actions/checkout@v4
#
# - name: Setup python
# uses: actions/setup-python@v5
# with:
# python-version: '3.12'
#
# - name: Installing deps
# run: make deps
#
# - name: Running tests
# run: pytest

# update-image:
# # update docker images if requirements are changed
# needs: run-tests
# runs-on: ubuntu-latest
# permissions:
# contents: read
# packages: write

# steps:
# - name: Checkout repository
# uses: actions/checkout@v4
#
# - name: Log in to the Container Registry
# uses: docker/login-action@v3
# with:
# registry: ${{ env.REGISTRY }}
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}

# - name: Extract metadata (tags, labels)
# id: meta
# uses: docker/metadata-action@v5
# with:
# images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

# - name: Build and push Docker image
# uses: docker/build-push-action@v5
# with:
# context: .
# push: true
# tags: ${{ steps.meta.outputs.tags }}
# labels: ${{ steps.meta.outputs.labels }}

update-remote:
needs: update-image
# needs: update-image
runs-on: ubuntu-latest
permissions:
contents: read
Expand Down

0 comments on commit e780ec5

Please sign in to comment.