This repository has been archived by the owner on Jan 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add integration to test the application
- Loading branch information
1 parent
de4f1ad
commit 082a2ee
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Test application | ||
|
||
on: | ||
push: | ||
pull_request: | ||
types: | ||
- reopened | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
max-parallel: 4 | ||
matrix: | ||
python-version: ["3.11"] | ||
poetry-version: ["1.6.1"] | ||
|
||
env: | ||
DATABASE_URL: "sqlite:///db.sqlite3" | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install Poetry ${{ matrix.poetry-version }} | ||
uses: snok/install-poetry@v1 | ||
with: | ||
version: ${{ matrix.poetry-version }} | ||
virtualenvs-create: false | ||
installer-parallel: true | ||
|
||
- name: Install dependencies | ||
run: | | ||
poetry run pip install --no-deps --upgrade pip | ||
poetry install --with dev | ||
- name: Run hooks | ||
uses: pre-commit/[email protected] | ||
|
||
- name: Run tests | ||
run: | | ||
poetry run python manage.py test \ | ||
--settings=server.settings.development |