diff --git a/.gitea/workflows/init_setup_environment.yml b/.gitea/workflows/init_setup_environment.yml index 5ccfcb996..0c654ae55 100644 --- a/.gitea/workflows/init_setup_environment.yml +++ b/.gitea/workflows/init_setup_environment.yml @@ -6,7 +6,8 @@ on: - main jobs: - initialize: + native: + if: contains(github.event.head_commit.message, '@native') runs-on: ubuntu-latest env: DB_USER: ${{ secrets.DB_USER }} @@ -33,11 +34,6 @@ 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 @@ -46,11 +42,26 @@ 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: Set up Python + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - 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 }}