-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (43 loc) · 1.09 KB
/
cd-pypi.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: SMARTS CD PyPI
on:
schedule:
- cron: '30 8 * * *'
jobs:
package:
runs-on: ubuntu-20.04
container: ghcr.io/smarts-project/smarts:v0.6.1-minimal
steps:
- name: Checkout
uses: actions/checkout@v2
with:
repository: huawei-noah/SMARTS
path: '.'
- name: Setup Python
uses: actions/setup-python@v4
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 }}