Skip to content

Commit 62e0dc2

Browse files
author
c4ffein
committed
tryfix-ci
1 parent 768dd15 commit 62e0dc2

File tree

2 files changed

+34
-4
lines changed

2 files changed

+34
-4
lines changed

.github/workflows/lint.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Lint
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
max-parallel: 4
14+
matrix:
15+
python-version: [3.12]
16+
timeout-minutes: 10
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v3
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
- name: Install Dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install uv
27+
uv venv venv
28+
. venv/bin/activate
29+
uv pip install .[dev]
30+
- name: Run Ruff
31+
run: |
32+
. venv/bin/activate
33+
make lint-check

accounts/tests.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,4 @@ def test_profile_detail_view_cant_follow_wrong_path(self):
391391
response = self.client.post(f"/profiles/{self.user.username}/follow/23")
392392
self.assertEqual(response.status_code, 404)
393393
except Exception as e:
394-
self.assertEqual(e.args[0], 'Cannot resolve "/profiles/testuser/follow/23"')
395-
396-
def test_the_ci_is_broken(self):
397-
raise Exception("just kiddin")
394+
self.assertEqual(e.args[0], 'Cannot resolve "/profiles/testuser/follow/23"')

0 commit comments

Comments
 (0)