Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: astral-sh/setup-uv@v3
with:
python-version: 3.13.0
- run: python -m pip install --upgrade pip
- run: pip install -r requirements.txt
- run: pytest
enable-cache: true
version: "latest"
- run: uv sync --locked
- run: uv run pytest
- run: echo "🍏 This job's status is ${{ job.status }}."
36 changes: 16 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,51 +4,47 @@ Follow these steps to set up the application locally:

## Prerequisites

- Ensure you have Python 3.13 installed on your machine. If not, download and install it from [python.org](https://www.python.org/).
- To use this project, you need to have `uv` installed. You can install it using the following command:
```sh
curl -LsSf https://astral.sh/uv/install.sh | sh
```

## Steps to Set Up the Application

1. **Create and Activate Virtual Environment**

```bash
python3 -m venv venv
source venv/bin/activate
```

2. **Install Required Packages**
1. **Install Required Packages**

```bash
pip install -r requirements.txt
uv sync --locked
```

3. **Install pre-commis hooks**
2. **Install pre-commis hooks**

```bash
pre-commit install
uv run pre-commit install
```

4. **(Optional) Execute hooks on all files:**
3. **(Optional) Execute hooks on all files:**

```bash
pre-commit run --all-files
uv run pre-commit run --all-files
```

5. **Migrate the Database**
4. **Migrate the Database**

```bash
python manage.py migrate
uv run python manage.py migrate
```

6. **Load Fixtures**
5. **Load Fixtures**

```bash
python manage.py loaddata fixtures/*.yaml
uv run python manage.py loaddata fixtures/*.yaml
```

7. **Run the Development Server**
6. **Run the Development Server**

```bash
python manage.py runserver
uv run manage.py runserver
```

## Default Users
Expand Down
22 changes: 22 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
[project]
name = "tech-radar-deployed"
description = "Tech Radar Deployed"
requires-python="~=3.13"
version = "0.1.0"
readme="README.me"
dependencies = [
"django>=5.1.4",
"django-colorfield>=0.11.0",
"django-extensions>=3.2.3",
"djangorestframework>=3.15.2",
"pyyaml>=6.0.2",
]

[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "techradar.settings"
python_files = ["tests.py", "test_*.py", "*_test.py", "tests/test_*.py"]

[dependency-groups]
dev = [
"factory-boy>=3.3.1",
"pre-commit>=4.1.0",
"pytest>=8.3.4",
"pytest-django>=4.9.0",
]
11 changes: 0 additions & 11 deletions requirements.txt

This file was deleted.

Loading