forked from networkx/networkx
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (32 loc) · 1.07 KB
/
nightly.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
name: Upload and build nightly wheels
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
jobs:
cron:
# Do not attempt to upload nightly through forks
if: github.repository_owner == 'networkx'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install Python requirements
run: |
python -m pip install -r requirements/release.txt
- name: Build a wheel and a sdist
run: |
python -m build .
- name: Verify the distribution
run: twine check --strict dist/*
- name: List contents of sdist
run: python -m tarfile --list dist/networkx-*.tar.gz
- name: List contents of wheel
run: python -m zipfile --list dist/networkx-*.whl
- name: Upload nighlty wheel
uses: scientific-python/upload-nightly-action@5fb764c5bce1ac2297084c0f7161b1919f17c74f # 0.2.0
with:
anaconda_nightly_upload_token: ${{ secrets.ANACONDA_NIGHTLY }}
artifacts_path: dist/