-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
# GITHUB_WORKFLOW: The name of the workflow. | ||
# GITHUB_RUN_ID: A unique identifier for the workflow run. | ||
# GITHUB_RUN_NUMBER: The number of the current run of the workflow. | ||
# GITHUB_ACTION: The name of the action. | ||
# GITHUB_ACTOR: The name of the person or app that initiated the workflow. | ||
# GITHUB_JOB: The ID of the current job. | ||
# GITHUB_REF: The branch or tag ref that triggered the workflow. | ||
# GITHUB_SHA: The commit SHA that triggered the workflow. | ||
# GITHUB_REPOSITORY: The owner and repository name (e.g., user/repo). | ||
name: Linting | ||
on: | ||
- push | ||
- workflow_dispatch | ||
env: | ||
FORCE_COLOR: 1 | ||
|
||
jobs: | ||
linting: | ||
runs-on: "ubuntu-24.04" | ||
|
||
steps: | ||
- run | | ||
echo "Workflow name: $GITHUB_WORKFLOW" | ||
|
||
# Checkout this repository | ||
- uses: actions/checkout@v4 | ||
|
||
# Setup the specified Python version | ||
- name: "Set up Python 3.12" | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
|
||
- run: | | ||
echo "Running on ${{ runner.os }}" | ||
python3 --version | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -r ./requirements.txt | ||
- name: Linting (pylama) | ||
run: pylama . | ||
|
||
- name: Linting (black) | ||
run: black --check . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,8 @@ name: Linting | |
on: | ||
- push | ||
- workflow_dispatch | ||
env: | ||
FORCE_COLOR: 1 | ||
|
||
jobs: | ||
linting: | ||
|