Skip to content

example notebooks function default values changed to not mutable (#9) #38

example notebooks function default values changed to not mutable (#9)

example notebooks function default values changed to not mutable (#9) #38

Workflow file for this run

name: CI
on:
push:
jobs:
ci:
runs-on: ubuntu-20.04
steps:
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
SQLALCHEMY_URL: ${{ secrets.SQLALCHEMY_URL }}
ALLOW_SLOW_TESTS: "no"
STRIDE_ETL_DEPLOY_KEY: ${{ secrets.STRIDE_ETL_DEPLOY_KEY }}
run: |
curl -s https://raw.githubusercontent.com/OriHoch/uumpa-ci-toolbox/65a0704332e63d51f63981dbb25cd83682dc4078/bin/github_actions_install.sh \
| bash -s 4d163c416a5c7192e4f4dba883bb4c0480eaee8c OriHoch/uumpa-ci-toolbox &&\
uci github actions self-checkout --config-user-name "open-bus-stride-client-ci" &&\
uci git checkout --github-repo-name hasadna/open-bus-stride-api --branch-name main \
--config-user-name "open-bus-stride-client-ci" \
--fetch-depth 1 --path ../open-bus-stride-api &&\
uci git checkout --github-repo-name hasadna/open-bus-stride-db --branch-name main \
--config-user-name "open-bus-stride-client-ci" \
--fetch-depth 1 --path ../open-bus-stride-db &&\
pip install -e .[all] &&\
pip install -r ../open-bus-stride-api/requirements-dev.txt &&\
pip install -e ../open-bus-stride-api &&\
pip install -r tests/requirements.txt &&\
pytest &&\
TAG_NAME="$(uci github actions get-tag-name)" &&\
if [ "${TAG_NAME}" != "" ]; then
echo "${TAG_NAME}" > VERSION.txt &&\
pip install --upgrade build pip twine &&\
python3 -m build &&\
python3 -m twine upload "dist/open-bus-stride-client-${TAG_NAME}.tar.gz" &&\
echo "${STRIDE_ETL_DEPLOY_KEY}" > stride_etl_deploy_key &&\
chmod 400 stride_etl_deploy_key &&\
export GIT_SSH_COMMAND="ssh -i `pwd`/stride_etl_deploy_key -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" &&\
git clone git@github.com:hasadna/open-bus-stride-etl.git &&\
git config --global user.name "Open Bus Stride Client CI" &&\
git config --global user.email "open-bus-stride-client-ci@localhost" &&\
cd open-bus-stride-etl &&\
echo "${TAG_NAME}" > stride-client-latest-tag.txt &&\
git add stride-client-latest-tag.txt &&\
git commit -m "automatic update of open bus stride client dependencies" &&\
git push origin main
fi