From 649a824c0d448034d836bf3745bc4975475a6e77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iago=20Su=C3=A1rez?= Date: Mon, 19 Feb 2024 00:43:15 +0100 Subject: [PATCH] Editing CI config --- .github/workflows/build-new.yml | 42 ++++++++++++++++----------------- .github/workflows/pip.yml | 6 ----- 2 files changed, 21 insertions(+), 27 deletions(-) diff --git a/.github/workflows/build-new.yml b/.github/workflows/build-new.yml index aec5632..5717ebd 100644 --- a/.github/workflows/build-new.yml +++ b/.github/workflows/build-new.yml @@ -54,24 +54,24 @@ jobs: name: pytlsd-${{ matrix.os }} path: ./wheelhouse/pytlsd-*.whl - pypi-publish: - name: Publish wheels to PyPI - needs: [ linux-build, mac-build ] - runs-on: ubuntu-latest - # We publish the wheel to pypi when a new tag is pushed, - # either by creating a new GitHub release or explictly with `git tag` - if: ${{ github.event_name == 'release' || startsWith(github.ref, 'refs/tags') }} - steps: - - name: Download wheels - uses: actions/download-artifact@v3 - with: - path: ./artifacts/ - - name: Move wheels - run: mkdir ./wheelhouse && mv ./artifacts/**/*.whl ./wheelhouse/ - - name: Publish package - uses: pypa/gh-action-pypi-publish@release/v1 - with: - skip_existing: true - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} - packages_dir: ./wheelhouse/ \ No newline at end of file +# pypi-publish: +# name: Publish wheels to PyPI +# needs: [ linux-build, mac-build ] +# runs-on: ubuntu-latest +# # We publish the wheel to pypi when a new tag is pushed, +# # either by creating a new GitHub release or explictly with `git tag` +# if: ${{ github.event_name == 'release' || startsWith(github.ref, 'refs/tags') }} +# steps: +# - name: Download wheels +# uses: actions/download-artifact@v3 +# with: +# path: ./artifacts/ +# - name: Move wheels +# run: mkdir ./wheelhouse && mv ./artifacts/**/*.whl ./wheelhouse/ +# - name: Publish package +# uses: pypa/gh-action-pypi-publish@release/v1 +# with: +# skip_existing: true +# user: __token__ +# password: ${{ secrets.PYPI_API_TOKEN }} +# packages_dir: ./wheelhouse/ \ No newline at end of file diff --git a/.github/workflows/pip.yml b/.github/workflows/pip.yml index 807b7a6..ce26199 100644 --- a/.github/workflows/pip.yml +++ b/.github/workflows/pip.yml @@ -26,12 +26,6 @@ jobs: pip install -r requirements.txt - name: Build python package run: pip install . - - name: Lint with ruff - run: | - # stop the build if there are Python syntax errors or undefined names - ruff --format=github --select=E9,F63,F7,F82 --target-version=py37 . - # default set of ruff rules with GitHub Annotations - ruff --format=github --target-version=py37 . - name: Test with pytest run: | pytest -v tests/tests.py --junitxml=test-reports/report.xml \ No newline at end of file