-
Notifications
You must be signed in to change notification settings - Fork 3.7k
46 lines (41 loc) · 1.29 KB
/
release-nightly.yml
File metadata and controls
46 lines (41 loc) · 1.29 KB
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
name: Nightly packages
on:
pull_request: # this shall test only the part of workflow before publishing
branches: [master, "release/*"]
types: [opened, reopened, ready_for_review, synchronize]
paths:
- "requirements/ci.txt"
- ".github/actions/pkg-check/*"
- ".github/workflows/release-nightly.yml"
schedule:
- cron: "0 0 * * 0" # on Sundays
workflow_dispatch: {}
defaults:
run:
shell: bash
jobs:
build-packages:
runs-on: ubuntu-22.04
env:
PKG_NAME: "lightning"
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: "3.10"
- name: Convert actual version to nightly
run: |
pip install -q -r .actions/requirements.txt
python .actions/assistant.py convert_version2nightly
- run: python -c "print('NB_DIRS=' + str(2 if '${{ env.PKG_NAME }}' == 'pytorch' else 1))" >> $GITHUB_ENV
- name: Build & check package
uses: ./.github/actions/pkg-check
with:
pkg-name: ${{ env.PKG_NAME }}
nb-dirs: ${{ env.NB_DIRS }}
allow-local-changes: "true"
- uses: actions/upload-artifact@v6
with:
name: nightly-packages-${{ github.sha }}
path: dist
include-hidden-files: true