Skip to content

Commit

Permalink
Test new build
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoucheiron committed Feb 16, 2024
1 parent 62e08bd commit 451e634
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 16 deletions.
30 changes: 18 additions & 12 deletions .github/workflows/pypi-release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: PyPI release

on:
release:
types: [published]
#on:
# release:
# types: [published]

on: push

jobs:
pypi-publish:
Expand All @@ -20,18 +22,22 @@ jobs:
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.7'
python-version: '3.8'

- name: Install dependencies
run: |
python -m pip install -U pip
python -m pip install -U twine build
python -m pip install -U twine build setuptools-scm
- name: Build package
run: |
python -m setuptools_scm
python -m build
twine check --strict dist/*
- name: Build a binary wheel
run: python setup.py sdist bdist_wheel
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
# - name: Publish distribution 📦 to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# user: __token__
# password: ${{ secrets.PYPI_TOKEN }}
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@ unit:
pytest -svvv tests

coverage:
coverage run --source=cfripper --branch -m pytest tests/ --junitxml=build/test.xml -v
coverage report
coverage xml -i -o build/coverage.xml
coverage html
pytest --cov cfripper

test: lint unit

Expand Down

0 comments on commit 451e634

Please sign in to comment.