Nightly Release #963
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: 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 |