diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 571a9e64..6b3db267 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -26,15 +26,50 @@ jobs: with: python-version: ${{ matrix.python-version }} - # stress-test-linux: - # needs: build-linux - # strategy: - # fail-fast: false - # matrix: - # python-version: ["3.12"] - # uses: ./.github/workflows/test-linux-wheel.yml - # with: - # python-version: ${{ matrix.python-version }} - # pytest-markers: "-m 'stress_test'" - # timeout-minutes: 60 + stress-test-linux: + needs: build-linux + strategy: + fail-fast: false + matrix: + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] + uses: ./.github/workflows/test-linux-wheel.yml + with: + python-version: ${{ matrix.python-version }} + pytest-markers: "-m 'stress_test'" + timeout-minutes: 60 + + test-external-crm: + needs: build-linux + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - name: Set up Python 3.11 + uses: actions/setup-python@v5 + with: + python-version: '3.11' + + - name: Download wheel artifact + uses: actions/download-artifact@v4 + with: + name: wheels-linux-3.11 + path: ./wheels/ + + - name: Clone external CRM repository + uses: actions/checkout@v4 + with: + repository: adrian-zawadzki/crm + token: ${{ secrets.PAT_TOKEN }} + path: crm + + - name: Install requirements and wheel + run: | + cd crm + pip install -r requirements.txt + pip install --force-reinstall ../wheels/*.whl + pip install --force-reinstall packages/*.whl + + - name: Run tests + run: | + cd crm + ./run_tests.sh > /dev/null 2>&1 diff --git a/.github/workflows/run-private.yml b/.github/workflows/run-private.yml deleted file mode 100644 index 7194470d..00000000 --- a/.github/workflows/run-private.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Call Private Action - -on: - push: - branches: - - main - workflow_dispatch: - -permissions: - contents: read # Needed to access private repos in same org - -jobs: - call_private_action: - runs-on: ubuntu-latest - - steps: - # Checkout the public repo - - name: Checkout public repo - uses: actions/checkout@v4 - - # Optional: create an artifact to pass - - name: Create artifact - run: echo "Hello from public repo!" > message.txt - - - name: Upload artifact - uses: actions/upload-artifact@v4 - with: - name: public-artifact - path: message.txt - - # Call private action in same org - - name: Call private action - uses: dbzero-software/mini_app/actions/private-action.yml@main - with: - input_message: "Hello from workflow!" - artifact_name: "public-artifact" \ No newline at end of file