Skip to content

Commit

Permalink
remove publish to pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
jpdeleon committed Sep 13, 2024
1 parent 15a2033 commit 70190c9
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/setup-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Install, Test, and Publish Package
on:
push:
branches:
- main # or your default branch
- main
release:
types: [created]

Expand All @@ -14,7 +14,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.10", "3.11"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -68,30 +68,30 @@ jobs:
run: |
conda activate ql
pytest
publish:
needs: build
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'created'
### quicklook name is taken in pypi
# publish:
# needs: build
# runs-on: ubuntu-latest
# if: github.event_name == 'release' && github.event.action == 'created'

steps:
- uses: actions/checkout@v3
# steps:
# - uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
# - name: Set up Python
# uses: actions/setup-python@v4
# with:
# python-version: '3.10'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install build twine

- name: Build package
run: python -m build
# - name: Build package
# run: python -m build

- name: Publish to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: twine upload dist/*
# - name: Publish to PyPI
# env:
# TWINE_USERNAME: __token__
# TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
# run: twine upload dist/*

0 comments on commit 70190c9

Please sign in to comment.