Skip to content

Commit

Permalink
Editing CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
iago-suarez committed Feb 18, 2024
1 parent 2939715 commit 649a824
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 27 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/build-new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
# 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/
6 changes: 0 additions & 6 deletions .github/workflows/pip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 649a824

Please sign in to comment.