You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@casbin.apache.org by hs...@apache.org on 2026/08/06 05:58:12 UTC
(casbin-python-django-orm-adapter) branch master updated: ci: modernize build workflow (#11)
This is an automated email from the ASF dual-hosted git repository.
hsluoyz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/casbin-python-django-orm-adapter.git
The following commit(s) were added to refs/heads/master by this push:
new e4593b8 ci: modernize build workflow (#11)
e4593b8 is described below
commit e4593b86cd1aed44f54f7954bf02e87939e05b99
Author: Ziyang Dong <ba...@gmail.com>
AuthorDate: Thu Aug 6 13:58:08 2026 +0800
ci: modernize build workflow (#11)
---
.github/workflows/build.yml | 25 ++++++++++++-------------
requirements_dev.txt | 3 ++-
2 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 4f0c0e1..6fbde44 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -16,10 +16,10 @@ jobs:
steps:
- name: Checkout
- uses: actions/checkout@v2
+ uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
- uses: actions/setup-python@v2
+ uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
@@ -44,19 +44,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
- uses: actions/checkout@v2
+ uses: actions/checkout@v4
+
+ - name: Set up Python
+ uses: actions/setup-python@v5
with:
- fetch-depth: 0
+ python-version: '3.12'
+
+ - name: Install black
+ run: pip install "$(grep '^black==' requirements_dev.txt)"
- - name: Super-Linter
- uses: github/super-linter@v4.9.2
- env:
- VALIDATE_ALL_CODEBASE: false
- VALIDATE_PYTHON_BLACK: true
- DEFAULT_BRANCH: master
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- LINTER_RULES_PATH: /
- PYTHON_BLACK_CONFIG_FILE: pyproject.toml
+ - name: Check formatting with black
+ run: black --check --diff .
coveralls:
name: Indicate completion to coveralls.io
diff --git a/requirements_dev.txt b/requirements_dev.txt
index 65ac54c..10851ff 100644
--- a/requirements_dev.txt
+++ b/requirements_dev.txt
@@ -1,2 +1,3 @@
-r requirements.txt
-setuptools==60.2.0
\ No newline at end of file
+setuptools==60.2.0
+black==25.1.0
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@casbin.apache.org
For additional commands, e-mail: commits-help@casbin.apache.org