Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ivaaahn committed Mar 3, 2024
1 parent 05c0748 commit f2c5c0e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,18 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.9
python-version: 3.12

- name: Install dependencies
run: pip install -r requirements.txt

- name: update pythonpath
run: echo "PYTHONPATH=$PYTHONPATH:/home/runner/work/hw-backend-summer-2022-3-sqlalchemy/hw-backend-summer-2022-3-sqlalchemy" >> $GITHUB_ENV
run: echo "PYTHONPATH=$PYTHONPATH:/home/runner/work/${{ github.event.repository.name }}/${{ github.event.repository.name }}" >> $GITHUB_ENV

- name: set CONFIGPATH
run: echo "CONFIGPATH=/home/runner/work/hw-backend-summer-2022-3-sqlalchemy/hw-backend-summer-2022-3-sqlalchemy/tests/config.yml" >> $GITHUB_ENV
run: echo "CONFIGPATH=/home/runner/work/${{ github.event.repository.name }}/${{ github.event.repository.name }}/tests/config.yml" >> $GITHUB_ENV

- name: handle migrations
run: alembic upgrade head
run: alembic upgrade head

- run: docker run --entrypoint /bin/bash -e GITHUB_REPOSITORY -e GITHUB_REF -e CONFIGPATH=${{ env.CONFIGPATH }} -e PYTHONPATH=${{ env.PYTHONPATH }} --network host --mount src="$(pwd)",target=/go/code/source,type=bind ${{ env.IMAGE }} -c "mv build/main source && ls -lah && cd source && ./main"

0 comments on commit f2c5c0e

Please sign in to comment.