Skip to content

Commit

Permalink
CI update GHA build_wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-jansen committed Sep 8, 2021
1 parent d05155b commit 5053c82
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ on:
types:
- published


jobs:
dist:
runs-on: ${{ matrix.os }}
Expand All @@ -24,6 +23,8 @@ jobs:
steps:
- name: Checkout pyfolio
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
Expand All @@ -44,15 +45,13 @@ jobs:
upload_pypi:
needs: [ dist ]
runs-on: ubuntu-latest
# upload to (Test)-PyPI on push with tag starting with v; diff by commit
# if: startsWith(github.ref, 'refs/tags')
steps:
- uses: actions/download-artifact@v2
with:
name: artifact
path: dist
- name: publish to testpypi
uses: pypa/gh-action-pypi-publish@v1.4.1
uses: pypa/gh-action-pypi-publish@master
if: ${{ github.event.inputs.target }} == 'TESTPYPI'
with:
user: __token__
Expand All @@ -61,7 +60,6 @@ jobs:
- name: publish to pypi
uses: pypa/gh-action-pypi-publish@master
if: ${{ github.event.inputs.target }} == 'PYPI' || (github.event_name == 'release' && github.event.action == 'published')
# if: ${{ github.event.inputs.target }} == 'PYPI'
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
20 changes: 20 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: check-yaml
- id: check-merge-conflict
- id: end-of-file-fixer
- id: trailing-whitespace

- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.1
hooks:
- id: flake8

- repo: https://github.com/psf/black
rev: 20.8b1
hooks:
- id: black

exclude: '^conda/recipe/meta.yaml$'

0 comments on commit 5053c82

Please sign in to comment.