Skip to content

SMARTS CD PyPI

SMARTS CD PyPI #615

Workflow file for this run

name: SMARTS CD PyPI
on:
schedule:
- cron: '0 10 * * *'
push:
branches:
- master
jobs:
package:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
repository: huawei-noah/SMARTS
path: '.'
- name: Setup Python
uses: actions/[email protected]
id: cp38
with:
python-version: "3.8"
cache: pip
- name: Install Enchant
run: |
apt-get update --fix-missing
apt-get install -y libenchant-dev
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install wheel==0.38.4
pip install .[all]
pip install -r requirements.txt
pip install twine
- name: Build SMARTS binary wheel
run: |
make wheel
- name: Twine check
id: twine_check
run: |
twine check --strict dist/*
- name: Publish SMARTS to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}