aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-09-19 20:05:50 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:54 +0100
commit3e315c787b35ed3b6229aa88eb619255d44f6eab (patch)
tree076a49885f67b185aa46e8c695743c8881f81083
parent435ca060358da8c37d9795e984435ad9d7773e41 (diff)
downloadwee-slack-3e315c787b35ed3b6229aa88eb619255d44f6eab.tar.gz
Update CI to use poetry and run the relevant checks
-rw-r--r--.github/workflows/wee-slack.yml20
1 files changed, 6 insertions, 14 deletions
diff --git a/.github/workflows/wee-slack.yml b/.github/workflows/wee-slack.yml
index 07c86f4..ce6080a 100644
--- a/.github/workflows/wee-slack.yml
+++ b/.github/workflows/wee-slack.yml
@@ -19,22 +19,14 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
+ - uses: abatilo/actions-poetry@v2
- - run: pip install --upgrade pipenv
- - run: pipenv install --dev --skip-lock
+ - run: poetry install
- - name: Lint with Flake8
- run: |
- # stop the build if there are Python syntax errors or undefined names
- pipenv run flake8 .
+ - run: poetry run isort --check main.py slack tests typings
- # exit-zero treats all errors as warnings.
- pipenv run flake8 . --exit-zero --select=C,E,F,W
+ - run: poetry run black --check .
- - name: Check Python formatting
- run: |
- pipenv run black --check .
+ - run: poetry run pyright --pythonversion 3.7 main.py slack tests typings
- - name: python/test
- run: |
- pipenv run pytest
+ - run: poetry run pytest tests