Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
afuetterer committed Jul 16, 2024
1 parent 00543db commit 5dc37ca
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,16 @@ jobs:
matrix:
python-version: ['3.8', '3.12']
db-backend: [mysql, postgres]
frontend: [false]
end-to-end: [false]
include:
- python-version: '3.12'
- db-backend: postgres
- frontend: true
- end-to-end: true
name: "Test (Python: ${{ matrix.python-version }}, DB: ${{ matrix.db-backend }})"
steps:
- run: echo "Matrix - Python ${{ matrix.python-version }}, DB ${{ matrix.db-backend }} - ${{ matrix }}"
- run: echo "true"
if: matrix.end-to-end
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
Expand Down Expand Up @@ -173,20 +176,20 @@ jobs:
# end-to-end tests
- name: Install e2e tests dependencies
run: playwright install chromium
if: matrix.python-version == '3.12' && matrix.db-backend == 'postgres'
if: matrix.end-to-end
- name: Run end-to-end tests
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'
if: matrix.end-to-end
env:
DJANGO_DEBUG: True
GITHUB_DB_BACKEND: ${{ matrix.db-backend }}
- uses: actions/upload-artifact@v4
with:
name: screenshots
path: screenshots/*.png
if: matrix.python-version == '3.12' && matrix.db-backend == 'postgres'
if: matrix.end-to-end

coveralls:
name: Indicate completion to coveralls
Expand Down

0 comments on commit 5dc37ca

Please sign in to comment.