Skip to content

Commit b96740c

Browse files
Phinart98lwasser
andauthored
Add GitHub Actions workflow for automated testing and Dependabot configuration (#50)
* Add GitHub Actions workflow for automated testing and Dependabot configuration - Add test.yml workflow that runs Django tests on push and PR to main - Add Dependabot to automatically update GitHub Actions weekly * Apply suggestion from @lwasser * Apply suggestion from @lwasser * Apply suggestion from @lwasser * Apply suggestion from @lwasser --------- Co-authored-by: Leah Wasser <[email protected]>
1 parent 8e24a44 commit b96740c

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/test.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Run Tests
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
19+
20+
- name: Set up Python 3.12
21+
uses: actions/setup-python@26af69be951a213d495a4c3e4e4022e16d87065 # v5
22+
with:
23+
python-version: "3.12"
24+
25+
- name: Install uv
26+
uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e #v6.8.0
27+
28+
- name: Install dependencies
29+
run: uv sync
30+
31+
- name: Run tests
32+
run: uv run python manage.py test

0 commit comments

Comments
 (0)