mirror of
https://github.com/bsedin/matrix-webhook.git
synced 2026-01-16 08:05:57 +00:00
update ci/cd
This commit is contained in:
parent
147d396b51
commit
7eba044844
3
.github/workflows/entrypoint.yml
vendored
3
.github/workflows/entrypoint.yml
vendored
@ -6,6 +6,9 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: '3.10'
|
||||||
|
cache: pip
|
||||||
- run: python -m pip install -U pip
|
- run: python -m pip install -U pip
|
||||||
- run: python -m pip install .
|
- run: python -m pip install .
|
||||||
- run: matrix-webhook -h
|
- run: matrix-webhook -h
|
||||||
|
|||||||
13
.github/workflows/lint.yml
vendored
13
.github/workflows/lint.yml
vendored
@ -5,5 +5,14 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: psf/black@stable
|
- run: pipx install poetry
|
||||||
- uses: pyupio/safety@2.3.5
|
- uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: '3.10'
|
||||||
|
cache: poetry
|
||||||
|
- run: poetry install --with dev --no-interaction
|
||||||
|
- run: poetry run flake8 .
|
||||||
|
- run: poetry run black .
|
||||||
|
- run: poetry run pydocstyle
|
||||||
|
- run: poetry run safety check
|
||||||
|
- run: poetry run poetry check
|
||||||
|
|||||||
9
.github/workflows/release.yml
vendored
9
.github/workflows/release.yml
vendored
@ -10,9 +10,12 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- run: pip install -U poetry twine wheel
|
- run: pipx install poetry
|
||||||
- run: poetry build
|
- uses: actions/setup-python@v4
|
||||||
- run: twine upload --non-interactive -u __token__ -p ${{ secrets.PYPI_TOKEN }} dist/*
|
with:
|
||||||
|
python-version: '3.10'
|
||||||
|
cache: poetry
|
||||||
|
- run: poetry publish --build -u __token__ -p ${{ secrets.PYPI_TOKEN }}
|
||||||
- run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
|
- run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
|
||||||
- run: gh release create -t "Release ${{ env.TAG}}" -n "$(awk '/## \[${{ env.TAG }}] - /{flag=1;next}/## \[/{flag=0}flag' CHANGELOG.md)" ${{ env.TAG }} dist/*
|
- run: gh release create -t "Release ${{ env.TAG}}" -n "$(awk '/## \[${{ env.TAG }}] - /{flag=1;next}/## \[/{flag=0}flag' CHANGELOG.md)" ${{ env.TAG }} dist/*
|
||||||
env:
|
env:
|
||||||
|
|||||||
@ -6,7 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
- update tooling & lints
|
- update tooling
|
||||||
|
- update lints
|
||||||
|
- update ci/cd
|
||||||
|
|
||||||
## [v3.5.0] - 2022-09-07
|
## [v3.5.0] - 2022-09-07
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user