From ad029d29cf0cb9512a0ff6a93726699e798e0654 Mon Sep 17 00:00:00 2001 From: Thomas Leduc Date: Mon, 15 Apr 2024 15:16:52 +0200 Subject: [PATCH] Update python-package.yml --- .github/workflows/python-package.yml | 65 ++-------------------------- 1 file changed, 3 insertions(+), 62 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 327b744..7e06ecc 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -1,5 +1,6 @@ -# This workflow will install Python dependencies, run tests and lint with a variety of Python versions -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python +# This workflow will build and publish t4gpd to PyPI +# For more information see: +# https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/ name: Publish t4gpd to PyPI on: push @@ -69,63 +70,3 @@ jobs: # TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} # TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} # run: twine upload dist/* - -# name: Python package - -# on: -# push: -# branches: [ "main" ] -# pull_request: -# branches: [ "main" ] -# release: -# types: [published] - -# jobs: -# deploy: -# runs-on: ubuntu-latest -# steps: -# - uses: actions/checkout@v4 -# - name: Set up Python -# uses: actions/setup-python@v4 -# with: -# python-version: '3.10' -# pypi-publish: -# name: upload release to PyPI -# # runs-on: ubuntu-latest -# # Specifying a GitHub environment is optional, but strongly encouraged -# environment: release -# permissions: -# # IMPORTANT: this permission is mandatory for trusted publishing -# id-token: write -# steps: -# # retrieve your distributions here -# - name: Publish package distributions to PyPI -# uses: pypa/gh-action-pypi-publish@release/v1 - -# build: -# runs-on: ubuntu-latest -# strategy: -# fail-fast: false -# matrix: -# python-version: ["3.9", "3.10", "3.11"] - -# steps: -# - uses: actions/checkout@v3 -# - name: Set up Python ${{ matrix.python-version }} -# uses: actions/setup-python@v3 -# with: -# python-version: ${{ matrix.python-version }} -# - name: Install dependencies -# run: | -# python -m pip install --upgrade pip -# python -m pip install flake8 pytest -# if [ -f requirements.txt ]; then pip install -r requirements.txt; fi -# - name: Lint with flake8 -# run: | -# # stop the build if there are Python syntax errors or undefined names -# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics -# # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide -# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics -# - name: Test with pytest -# run: | -# pytest