Skip to content

Commit

Permalink
test: testing release dagger-py
Browse files Browse the repository at this point in the history
  • Loading branch information
jesrypandawa committed Jun 13, 2022
1 parent 47f4dd2 commit dbc590b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install apache-flink==1.14.3
cd python-functions
cd dagger-py-functions
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
- name: Test with pytest
run: |
pytest python-functions --disable-warnings
pytest dagger-py-functions --disable-warnings
9 changes: 4 additions & 5 deletions .github/workflows/python_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get Version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Zip Python Udf
run: |
zip -rD python_udfs.zip dagger-py-functions/udfs -x "*/__init__.py"
zip -rD data.zip dagger-py-functions/data
zip -rD dagger-py-functions.zip dagger-py-functions/requirements.txt data.zip python_udfs.zip
cd dagger-py-functions
zip -r python_udfs.zip udfs -x "*/__init__.py"
zip -jr data.zip data
zip -r dagger-py-functions.zip requirements.txt data.zip python_udfs.zip
- name: Upload Release
uses: ncipollo/release-action@v1
with:
Expand Down

0 comments on commit dbc590b

Please sign in to comment.