Skip to content

Commit

Permalink
Run pre-commits in CI instead of black
Browse files Browse the repository at this point in the history
  • Loading branch information
danialkeimasi committed Sep 25, 2023
1 parent b190cc8 commit 249c77e
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,14 @@ name: tests
on: [push, pull_request, workflow_dispatch]

jobs:
formatting:
name: Check black formatting
pre-commit:
name: Run pre-commits
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install black
run: |
python -m pip install --upgrade pip
pip install black
- name: Check code formatting with black
run: |
black -l 120 --check --diff --color qsessions tests setup.py
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: pre-commit/action@v3.0.0

test:
name: Test
runs-on: ubuntu-latest
Expand All @@ -28,9 +20,9 @@ jobs:
django-version: ["4.2", "4.1", "3.2"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down

2 comments on commit 249c77e

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
qsessions
   admin.py55395%21, 42–43
   geoip.py27678%15, 21–23, 51–53
tests
   test_sessionstore.py99199%144
TOTAL4411098% 

Tests Skipped Failures Errors Time
48 0 💤 0 ❌ 0 🔥 6.115s ⏱️

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
qsessions
   admin.py55395%21, 42–43
   geoip.py27678%15, 21–23, 51–53
tests
   test_sessionstore.py99199%144
TOTAL4411098% 

Tests Skipped Failures Errors Time
48 0 💤 0 ❌ 0 🔥 6.186s ⏱️

Please sign in to comment.