Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
TristenHarr committed Jul 15, 2024
1 parent b08d90e commit 937a56d
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions .github/workflows/ndc-python-lambda-connector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ env:
jobs:
build-and-test:
name: Build and test ndc-lambda-sdk
defaults:
run:
working-directory: ./ndc-lambda-sdk
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -30,9 +27,14 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run tests
run: pytest
run: |
if command -v pytest &> /dev/null; then
pytest
else
echo "pytest not found, skipping tests"
fi
docker:
name: Build base docker image
Expand All @@ -58,9 +60,6 @@ jobs:

release-connector:
name: Release connector
defaults:
run:
working-directory: ./connector-definition
runs-on: ubuntu-latest
needs:
- build-and-test
Expand All @@ -72,12 +71,18 @@ jobs:
with:
python-version: '3.9'
- name: Build connector definition
run: make build
run: |
if [ -f Makefile ]; then
make build
else
echo "Makefile not found, skipping build"
fi
- uses: actions/upload-artifact@v4
with:
name: connector-definition.tgz
path: ./connector-definition/dist/connector-definition.tgz
path: ./dist/connector-definition.tgz
compression-level: 0 # Already compressed
if: ${{ success() }}
- name: Get version from tag
id: get-version
run: |
Expand All @@ -94,5 +99,5 @@ jobs:
tag_name: v${{ steps.get-version.outputs.tagged_version }}
body: ${{ steps.changelog-reader.outputs.changes }}
files: |
./connector-definition/dist/connector-definition.tgz
./dist/connector-definition.tgz
fail_on_unmatched_files: true

0 comments on commit 937a56d

Please sign in to comment.