From 218217644249cbfbe8641191157281fc6538ad3b Mon Sep 17 00:00:00 2001 From: Lance Tan Date: Sat, 21 Oct 2023 13:40:22 -0700 Subject: [PATCH] Fixed --- .github/workflows/backend/python.yml | 8 ++++---- .github/workflows/build.yml | 17 ++++++++--------- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/.github/workflows/backend/python.yml b/.github/workflows/backend/python.yml index ebc1743..45161cc 100644 --- a/.github/workflows/backend/python.yml +++ b/.github/workflows/backend/python.yml @@ -14,9 +14,10 @@ on: jobs: build: runs-on: ubuntu-latest + steps: - name: Set up Python ${{ inputs.python_version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v3 with: python-version: ${{ inputs.python_version }} @@ -25,7 +26,7 @@ jobs: python -m pip install --upgrade pipenv wheel - id: cache-pipenv - uses: actions/cache@v1 + uses: actions/cache@v3 with: path: ~/.local/share/virtualenvs key: ${{ runner.os }}-pipenv-${{ hashFiles('**/Pipfile.lock') }} @@ -39,5 +40,4 @@ jobs: env: SECRET_KEY: ${{ secrets.django_secret }} run: | - pipenv run python manage.py check - + pipenv run python manage.py check \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 94b57f7..b882e55 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,9 +2,9 @@ name: Build Pipeline on: push: - branches: [ main ] + branches: [main] pull_request: - branches: [ main ] + branches: [main] workflow_dispatch: jobs: @@ -12,11 +12,10 @@ jobs: runs-on: ubuntu-latest steps: - - name: Check out code - uses: actions/checkout@v4 - - - name: Run Python workflow - uses: ubclaunchpad/microvan/.github/workflows/backend/python.yml@main - with: - django_secret: ${{ secrets.DJANGO_SECRET }} + - name: Check out code + uses: actions/checkout@v4 + - name: Run Python workflow + uses: ./.github/workflows/backend/python.yml + with: + django_secret: ${{ secrets.DJANGO_SECRET }} \ No newline at end of file