Skip to content

Commit

Permalink
dev pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
vinicvaz committed May 28, 2024
1 parent 5907c6b commit 64e4c62
Showing 1 changed file with 35 additions and 32 deletions.
67 changes: 35 additions & 32 deletions .github/workflows/tests-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,47 +38,50 @@ jobs:

- name: Run organize and build images
run: |
domino piece organize --build-images --source-url=https://github.com/${{github.repository}} --tag-overwrite=development
echo "Skpping organize"
# run: |
# domino piece organize --build-images --source-url=https://github.com/${{github.repository}} --tag-overwrite=development

- name: Install Tests Dependencies
run: pip install -r requirements-tests.txt

- name: Run tests over built images
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
DOMINO_TESTS_ENVIRONMENT: github
run: |
pytest --cov=pieces --cov-report=xml --cov-report=term-missing
run: echo "Skip tests"
# env:
# OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
# DOMINO_TESTS_ENVIRONMENT: github
# run: |
# pytest --cov=pieces --cov-report=xml --cov-report=term-missing

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
# - name: Upload coverage reports to Codecov
# uses: codecov/codecov-action@v3
# env:
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

- name: Publish images
env:
GHCR_USERNAME: ${{ github.actor }}
run: domino piece publish-images --registry-token ${{ secrets.GITHUB_TOKEN }}
# - name: Publish images
# env:
# GHCR_USERNAME: ${{ github.actor }}
# run: domino piece publish-images --registry-token ${{ secrets.GITHUB_TOKEN }}

- name: Commit files
id: commit_files
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
GIT_STATUS=$(git status -s)
if [[ ! -z "$GIT_STATUS" ]]; then
git add .domino/* && git commit -m "auto-organize" -a
echo "commit_sha=$(git rev-parse HEAD)" >> $GITHUB_ENV
else
echo "No changes to commit"
echo "commit_sha=${{ github.sha }}" >> $GITHUB_ENV
fi
# - name: Commit files
# id: commit_files
# run: |
# git config --local user.email "github-actions[bot]@users.noreply.github.com"
# git config --local user.name "github-actions[bot]"
# GIT_STATUS=$(git status -s)
# if [[ ! -z "$GIT_STATUS" ]]; then
# git add .domino/* && git commit -m "auto-organize" -a
# echo "commit_sha=$(git rev-parse HEAD)" >> $GITHUB_ENV
# else
# echo "No changes to commit"
# echo "commit_sha=${{ github.sha }}" >> $GITHUB_ENV
# fi

- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
# - name: Push changes
# uses: ad-m/github-push-action@master
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# branch: ${{ github.ref }}

- name: Create Release
env:
Expand Down

0 comments on commit 64e4c62

Please sign in to comment.