diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 725faf0b9f..43077c3256 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -105,15 +105,14 @@ jobs: retention-days: 30 test: - runs-on: ubuntu-24.04 needs: build-wheel + runs-on: ubuntu-24.04 strategy: matrix: python-version: ['3.8', '3.12'] db-backend: [mysql, postgres] name: "Test (Python: ${{ matrix.python-version }}, DB: ${{ matrix.db-backend }})" steps: - - run: ls -R - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 @@ -125,7 +124,6 @@ jobs: with: name: wheel path: dist - - run: ls -R - name: Install Dependencies run: | sudo apt update @@ -164,20 +162,13 @@ jobs: flag-name: '${{ matrix.db-backend }}: ${{ matrix.python-version }}' parallel: true # end-to-end tests - - uses: actions/setup-node@v4 - with: - node-version: 18 - cache: npm - if: matrix.python-version == '3.12' && matrix.db-backend == 'postgres' - name: Install e2e tests dependencies - run: | - npm install - npm run build:prod - playwright install chromium + run: playwright install chromium if: matrix.python-version == '3.12' && matrix.db-backend == 'postgres' - - run: mkdir screenshots - name: Run end-to-end tests - run: pytest -p randomly -p no:cacheprovider --reuse-db --numprocesses=auto --dist=loadscope -m e2e --nomigrations + run: | + mkdir screenshots + pytest -p randomly -p no:cacheprovider --reuse-db --numprocesses=auto --dist=loadscope -m e2e --nomigrations if: matrix.python-version == '3.12' && matrix.db-backend == 'postgres' env: DJANGO_DEBUG: True @@ -217,6 +208,7 @@ jobs: dependencies: name: Test installation of all dependencies + needs: build-wheel runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 @@ -229,7 +221,7 @@ jobs: sudo apt update sudo apt install --yes libldap2-dev libsasl2-dev - run: python -m pip install --upgrade pip - - run: python -m pip install .[allauth,ci,dev,gunicorn,ldap,mysql,postgres,pytest] + - run: python -m pip install "$(ls dist/*.whl)[allauth,ci,dev,gunicorn,ldap,mysql,postgres,pytest]" - uses: actions/setup-node@v4 with: node-version: 18 @@ -265,9 +257,9 @@ jobs: if: always() needs: - lint + - build-wheel - test - coveralls - - build-wheel - dev-setup - dependencies runs-on: ubuntu-24.04