Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
dvviktordelev committed May 8, 2024
1 parent 35a5d89 commit b8e7341
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 22 deletions.
26 changes: 6 additions & 20 deletions .github/actions/build-python/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,16 @@ inputs:
run_build:
default: true
required: false
disable_cache:
description: "Set to true to disable caching"
default: false
required: false

runs:
using: "composite"
steps:
- name: Set up python (with cache)
uses: actions/setup-python@v5
- name: Set up python
uses: actions/setup-python@v3
with:
python-version: ${{ inputs.python_version }}
cache: 'pip'
# needs wheel for make
#- name: Set up python (without cache)
# if: inputs.disable_cache == 'true'
# uses: actions/setup-python@v3
# with:
# python-version: ${{ inputs.python_version }}
- name: install additional requirements
run: |
pip install setuptools wheel
Expand All @@ -55,25 +46,20 @@ runs:
env:
GITHUB_TOKEN: ${{ inputs.github_ro_token }}
- name: Install python dependencies
run: |
pip install --upgrade pip setuptools wheel
make develop
run: make develop
shell: bash
- name: Show installed pip packages
run: pip list || true
shell: bash
- name: Linting
if: inputs.run_lint == 'true'
run: |
make lint check-format
run: make lint check-format
shell: bash
- name: Run tests
if: inputs.run_test == 'true'
run: |
make test
run: make test
shell: bash
- name: Build wheel
if: inputs.run_build == 'true'
run: |
make build
run: make build
shell: bash
2 changes: 0 additions & 2 deletions .github/workflows/build-node-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@ jobs:
if: env.GH_ACTIONS_SELF_HOSTED_NETWORK_NAME != ''
run: |
{
#echo "GITHUB_TOKEN=${{ secrets.DATAVISYN_BOT_REPO_TOKEN }}"
echo "POSTGRES_HOSTNAME=postgres_${{ github.job }}_${{ inputs.deduplication-id }}_${{ github.run_id }}_${{ github.run_attempt }}"
echo "POSTGRES_PORT=5432"
} >> "$GITHUB_ENV"
Expand Down Expand Up @@ -332,7 +331,6 @@ jobs:
if: env.GH_ACTIONS_SELF_HOSTED_NETWORK_NAME != ''
run: |
{
echo "GITHUB_TOKEN=${{ secrets.DATAVISYN_BOT_REPO_TOKEN }}"
echo "POSTGRES_HOSTNAME=postgres_${{ github.job }}_${{ inputs.deduplication-id }}_${{ github.run_id }}_${{ github.run_attempt }}"
echo "POSTGRES_PORT=5432"
} >> "$GITHUB_ENV"
Expand Down

0 comments on commit b8e7341

Please sign in to comment.