diff --git a/.gitea/workflows/init_setup_environment.yml b/.gitea/workflows/init_setup_environment.yml index 138714b6b..5ccfcb996 100644 --- a/.gitea/workflows/init_setup_environment.yml +++ b/.gitea/workflows/init_setup_environment.yml @@ -6,8 +6,7 @@ on: - main jobs: - native: - if: contains(github.event.head_commit.message, '@native') + initialize: runs-on: ubuntu-latest env: DB_USER: ${{ secrets.DB_USER }} @@ -34,6 +33,11 @@ jobs: - name: Activate virtual environment and install dependencies run: make install + native: + if: contains(github.event.head_commit.message, '@native') + runs-on: ubuntu-latest + needs: [initialize] + steps: - name: Generate Config run: make gen_config @@ -42,21 +46,11 @@ jobs: docker: if: contains(github.event.head_commit.message, '@docker') runs-on: ubuntu-latest + needs: [initialize] strategy: matrix: python-version: [3.12.7] steps: - - name: Checkout Repository - uses: actions/checkout@v4 - with: - ref: ${{ github.ref_name }} - - - name: Create Python virtual environment - run: python -m venv venv - - - name: Activate virtual environment and install dependencies - run: make install - - name: Update Tag run: make update_tag CURR_BRANCH=${{ github.ref_name }}