File: nightly.yml

package info (click to toggle)
networkx 3.4.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,700 kB
  • sloc: python: 105,310; xml: 544; makefile: 131; javascript: 120; sh: 34
file content (33 lines) | stat: -rw-r--r-- 1,099 bytes parent folder | download
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@v5
        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@b67d7fcc0396e1128a474d1ab2b48aa94680f9fc # 0.5.0
        with:
          anaconda_nightly_upload_token: ${{ secrets.ANACONDA_NIGHTLY }}
          artifacts_path: dist/