diff --git a/.github/workflows/push-csv-to-repo.yml b/.github/workflows/push-csv-to-repo.yml index a937ed93..206fa47a 100644 --- a/.github/workflows/push-csv-to-repo.yml +++ b/.github/workflows/push-csv-to-repo.yml @@ -7,7 +7,7 @@ on: jobs: build: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: Checkout iit-backend uses: actions/checkout@v2 @@ -16,14 +16,43 @@ jobs: - name: Setup python uses: actions/setup-python@v4 - with: - python-version: '3.8.3' # Version range or exact version of a Python version to use, using SemVer's version range syntax - architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified - - - name: Install packages - uses: BSFishy/pip-action@v1 - with: - requirements: iit-backend/requirements.txt + with: + python-version: '3.8' #install the python needed + + - name: Python Pre-VENV Check + shell: bash + run: | + pwd + echo $PATH + + - name: Create VEnv + shell: bash + run: | + python -m pip install virtualenv + virtualenv $HOME/.pcsv + echo "$HOME/.pcsv/bin" >> $GITHUB_PATH + + - name: Python Post-VENV Check + shell: bash + run: | + pwd + echo $PATH + echo $PYTHONPATH + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + export PYTHONPATH="build/bdist.linux-x86_64/wheel/:$PYTHONPATH" + echo $PYTHONPATH + pip install arcgis + pip install -r iit-backend/requirements.txt + pip install git+https://github.com/stan-dev/pystan2.git@master + + +# - name: Install packages +# uses: BSFishy/pip-action@v1 +# with: +# requirements: iit-backend/requirements.txt - name: Create CSV locally # run estimate_csv_creator.py to get CSV run: python3 $GITHUB_WORKSPACE/iit-backend/app/github_public_repo/estimate_csv_creator.py diff --git a/requirements.txt b/requirements.txt index 2fdfbbb6..b646b8d8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,7 +2,6 @@ alembic==1.9.2 aniso8601==9.0.1 anyio==3.6.2 appnope==0.1.3 -arcgis==1.3.0 argon2-cffi==21.3.0 argon2-cffi-bindings==21.2.0 arrow==1.2.3 @@ -135,7 +134,6 @@ pyparsing==3.0.9 pyproj==3.4.1 pyrsistent==0.19.3 pyshp==2.3.1 -pystan==2.19.1.1 pytest==7.2.1 python-certifi-win32==1.6.1 python-dateutil==2.8.2