Skip to content

Commit

Permalink
tryfix-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
c4ffein committed Aug 4, 2024
1 parent 768dd15 commit 62e0dc2
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 4 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Lint

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.12]
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install uv
uv venv venv
. venv/bin/activate
uv pip install .[dev]
- name: Run Ruff
run: |
. venv/bin/activate
make lint-check
5 changes: 1 addition & 4 deletions accounts/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,4 @@ def test_profile_detail_view_cant_follow_wrong_path(self):
response = self.client.post(f"/profiles/{self.user.username}/follow/23")
self.assertEqual(response.status_code, 404)
except Exception as e:
self.assertEqual(e.args[0], 'Cannot resolve "/profiles/testuser/follow/23"')

def test_the_ci_is_broken(self):
raise Exception("just kiddin")
self.assertEqual(e.args[0], 'Cannot resolve "/profiles/testuser/follow/23"')

0 comments on commit 62e0dc2

Please sign in to comment.