forked from q-optimize/c3
-
Notifications
You must be signed in to change notification settings - Fork 1
65 lines (62 loc) · 1.9 KB
/
nightly_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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Nightly Release
on:
schedule:
- cron: '45 9 * * *' # 9.45 AM UTC everyday
jobs:
nightly_build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
ref: 'dev'
- name: Set up Python 3.10
uses: actions/setup-python@v1
with:
python-version: 3.10
- name : Install Prerequisites
run : |
sudo apt-add-repository universe
sudo apt-get update
sudo apt-get install gcc libpq-dev -y
sudo apt-get install python3-dev python3-pip python3-venv python3-wheel -y
pip3 install wheel
- name : Update Version numbers
run : |
python .github/prepare-nightly.py
- name: Build sdist and bdist_wheel
run: python setup.py sdist bdist_wheel
- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.test_pypi_password }}
skip_existing: true
repository_url: https://test.pypi.org/legacy/
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.pypi_password }}
skip_existing: true
- name: Wait for 3 minutes
uses: juliangruber/sleep-action@v1
with:
time: 3m
check-pip-install:
needs: [nightly_build-and-publish]
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.10']
env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install c3-toolset-nightly from pip
run: |
python -m pip install --upgrade pip
pip install c3-toolset-nightly