aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2023-04-22 10:12:00 -0400
committerEugene Triguba <eugenetriguba@gmail.com>2023-04-22 10:12:00 -0400
commit819576492934d7aca99392d7d99ea0b8c4dff080 (patch)
tree7dd6c7e838940bd0479ab59e729ee3e3eeb98b2c
parentFix argument handling for command (diff)
downloadpoetry-plugin-taskipy2-819576492934d7aca99392d7d99ea0b8c4dff080.zip
Add lint job
-rw-r--r--.github/workflows/lint.yaml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml
new file mode 100644
index 0000000..18b5bff
--- /dev/null
+++ b/.github/workflows/lint.yaml
@@ -0,0 +1,26 @@
+name: Lint
+
+on: [push, pull_request]
+
+jobs:
+ run-linters:
+ name: Run the project linters
+ runs-on: ubuntu-latest
+ steps:
+ - name: Check out the repo
+ uses: actions/checkout@v3
+
+ - name: Install poetry
+ run: pipx install poetry
+
+ - name: Setup Python
+ uses: actions/setup-python@v4
+ with:
+ python-version: '3.11'
+ cache: 'poetry'
+
+ - name: Install dependencies
+ run: poetry install
+
+ - name: Run linters
+ run: poetry run task lint