diff --git a/.gitea/workflows/action.yaml b/.gitea/workflows/action.yaml index 2858b1a9..b89f2ef0 100644 --- a/.gitea/workflows/action.yaml +++ b/.gitea/workflows/action.yaml @@ -41,8 +41,13 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip + pip install pytest pytest-cov pytest-mock pytest-qt - pip install -e . + + pip install \ + --index-url https://${{ secrets.GITEA_USER }}:${{ secrets.GITEA_TOKEN }}@gitea.psi.ch/api/packages/mx/pypi/simple/ \ + --extra-index-url https://pypi.org/simple \ + -e . - name: Run tests with pytest run: | @@ -67,17 +72,6 @@ jobs: uses: actions/setup-python@v4 with: python-version: '3.12' - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - - pip install pytest pytest-cov pytest-mock pytest-qt - - pip install \ - --index-url https://${{ secrets.GITEA_USER }}:${{ secrets.GITEA_TOKEN }}@gitea.psi.ch/api/packages/mx/pypi/simple/ \ - --extra-index-url https://pypi.org/simple \ - -e . - name: Set Up Python Environment run: |