Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 38 additions & 9 deletions .github/workflows/push-csv-to-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 0 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down