Skip to content

Commit

Permalink
add building and publishing to pypi in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtedn21 committed Nov 14, 2023
1 parent db55918 commit 86f4d0e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/github-actions-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Test Coverage
on: ["push", "pull_request"]

jobs:
test:
test_and_publish:
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -14,13 +14,24 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry
python -m poetry install
- name: Run pytest
run: |
PYTHONPATH=$(pwd)
export PYTHONPATH
poetry run pytest
poetry run pytest
- name: Build
run: poetry build

- name: Publish
run: |
echo $PYPI_TOKEN
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
poetry publish
5 changes: 1 addition & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "martin-eden"
version = "0.9.1"
version = "0.9.8"
description = "async backend framework on sockets"
authors = ["mrtedn21 <[email protected]>"]
readme = "README.md"
Expand Down Expand Up @@ -61,9 +61,7 @@ select = [
"W", # pycodestyle warnings
"YTT", # flake8-2020
]

fixable = ["I"]

ignore = [
"ANN002",
"ANN003",
Expand All @@ -75,5 +73,4 @@ ignore = [
"PLR0913",
"ANN401",
]

line-length = 79

0 comments on commit 86f4d0e

Please sign in to comment.