Skip to content

Commit

Permalink
revert to prev gh action version
Browse files Browse the repository at this point in the history
  • Loading branch information
diego-escobedo committed Feb 18, 2023
1 parent 07d786f commit 780af5a
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions .github/workflows/public_api_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ jobs:
with:
python-version: "3.9"

- name: List files in current directory
run: ls

- name: Install pipenv
run: |
python -m pip install --upgrade pipenv wheel && pipenv update
Expand Down Expand Up @@ -124,10 +121,6 @@ jobs:
echo "ADDON_ID=$ADDON_ID" >> $GITHUB_ENV
echo "LOTUS_HOST=http://localhost:8000" >> $GITHUB_ENV
- name: Run server
run: |
pipenv run python manage.py generate_schema
- name: Run server
run: |
pipenv run python manage.py runserver &
Expand All @@ -153,22 +146,15 @@ jobs:
- name: Install pipenv for lotus-python
run: |
cd ../lotus-python
python -m pip install --upgrade pipenv wheel datamodel-code-generator && pipenv update
python -m pip install --upgrade pipenv wheel && pipenv update
- name: Install dependencies for lotus-python
if: steps.cache-pipenv.outputs.cache-hit != 'true'
run: |
cd ../lotus-python
pipenv install --deploy --dev
- name: copy file
run: |
cp ../docs/openapi.yaml ../lotus-python
- name: generate models
run: |
cd ../lotus-python && datamodel-codegen --input openapi.yaml --output ./lotus/models.py --strict-nullable
- name: Test Pytest for lotus-python
run: |
cd ../lotus-python && pipenv run pytest
cd ../lotus-python
pipenv run pytest

0 comments on commit 780af5a

Please sign in to comment.