Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
afuetterer committed Jul 15, 2024
1 parent 2205719 commit f85fd55
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -125,7 +124,6 @@ jobs:
with:
name: wheel
path: dist
- run: ls -R
- name: Install Dependencies
run: |
sudo apt update
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -265,9 +257,9 @@ jobs:
if: always()
needs:
- lint
- build-wheel
- test
- coveralls
- build-wheel
- dev-setup
- dependencies
runs-on: ubuntu-24.04
Expand Down

0 comments on commit f85fd55

Please sign in to comment.