Fixing up a bug in gate-based lit removal #71
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python source package build | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install twine flake8 | |
# - name: Lint with flake8 for syntax errors | |
# run: | | |
# pip install flake8 | |
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | |
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | |
- name: Get Python3 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.10" | |
- name: Install pypa/build | |
run: >- | |
python -m | |
pip install | |
build | |
--user | |
- name: Build a source tarball | |
run: >- | |
python -m | |
build | |
--sdist | |
--outdir dist/ | |
- name: Build manylinux Python wheels | |
uses: RalfG/[email protected] | |
with: | |
build-requirements: 'cython numpy' | |
system-packages: 'zlib-devel boost-devel boost-program-options boost-serialization' | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: python-wheel-artifact | |
path: dist/* | |
- name: Publish wheels to PyPI | |
env: | |
TWINE_USERNAME: "__token__" | |
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} | |
run: | | |
twine upload --skip-existing --disable-progress-bar dist/pycryptosat-*.tar.gz |