Kevin
07/05/2022, 5:28 PMKhuyen Tran
07/05/2022, 5:31 PMimport sys
sys.path.append("path_to_your_module")
Kevin
07/05/2022, 5:35 PMjobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.7'
cache: 'pip'
- name: Install Prefect
run: |
cd $GITHUB_WORKSPACE
pip install -r requirements.txt
prefect register -p ./orchestrate/flows/authentics/database_loader.py --project $PREFECT_PROJECT
Kevin Kho
export PYTHONPATH="${PYTHONPATH}:/my/other/path"
and then the import will resolve?Kevin
07/05/2022, 5:43 PMAnna Geller
Kevin
07/05/2022, 6:06 PM- name: Setup Python Env
run: |
echo "PYTHONPATH=$pythonLocation:$GITHUB_WORKSPACE/orchestrate" >> $GITHUB_ENV
- name: Install Prefect
run: |
pip install -r requirements.txt
prefect register -p orchestrate/flows/authentics/database_loader.py --project $PREFECT_PROJECT
Kevin Kho