Skip to content

Commit 3461869

Browse files
Rename test job to unit-test in workflow (#1613)
Co-authored-by: ryan-morosa <Ryan.Morosa@icf.com>
1 parent 87edc69 commit 3461869

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/unit-tests.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Run Unit Tests
2+
3+
on:
4+
pull_request:
5+
branches: [master]
6+
7+
jobs:
8+
unit-test:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
15+
- name: Install python dependencies
16+
run: |
17+
python3 -m venv venv
18+
source venv/bin/activate
19+
python3 -m pip install --upgrade pip setuptools wheel
20+
pip install -r requirements/requirements.dev.txt --no-deps --prefer-binary --require-hashes
21+
22+
- name: Run Ruff Linter
23+
run: |
24+
source venv/bin/activate
25+
ruff check
26+
27+
- name: Run unit tests
28+
run: |
29+
source venv/bin/activate
30+
python manage.py test --exclude=integration

0 commit comments

Comments
 (0)