Skip to content

Commit

Permalink
github action instead of circle ci
Browse files Browse the repository at this point in the history
  • Loading branch information
fabricebrito committed Nov 21, 2023
1 parent 2796734 commit 84e20b1
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/python_publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Upload Python Package

on:
push:
branches:
- issue-160

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python3 -m venv venv
. venv/bin/activate
pip install setuptools wheel twine
pip install -r requirements.txt
- name: run tests
run: |
pip install nose2
nose2
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USER }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}

run: |
python setup.p_y bdist_wheel --universal
twine upload dist/*

0 comments on commit 84e20b1

Please sign in to comment.