Push Nightly #1134
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: Push Nightly | |
on: | |
# run every day at 11:15am | |
schedule: | |
- cron: '15 11 * * *' | |
jobs: | |
nightly: | |
runs-on: linux.20_04.4x | |
steps: | |
- name: Setup Python 3.10 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
architecture: x64 | |
- name: Checkout TorchX | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
set -eux | |
pip install -e .[dev] | |
pip install twine | |
- name: Run tests | |
run: pytest --cov=./ --cov-report=xml | |
- name: Push nightly | |
env: | |
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} | |
run: scripts/push_nightly.sh |