Skip to content

Commit

Permalink
Add publish package workflow (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkrivich authored Jul 25, 2023
1 parent 35e11f3 commit b9efe40
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 31 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/publish_package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Upload Python Package

on:
release:
types: [published]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
- name: Configure poetry
run: poetry config pypi-token.pypi "${{ secrets.PYPI_API_KEY }}"
- name: Publish package
run: poetry publish --build
3 changes: 2 additions & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.8", "3.9", "3.10", "3.11"]
Expand All @@ -31,4 +32,4 @@ jobs:
env:
GITHUB_ACTIONS: true
run: |
poetry run pytest
poetry run pytest -v
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,6 @@ logs/

SlowLoris.egg-info/

.pytest_cache
.pytest_cache

.DS_Store
29 changes: 0 additions & 29 deletions .travis.yml

This file was deleted.

0 comments on commit b9efe40

Please sign in to comment.