File: versioneer.yml

package info (click to toggle)
python-geopandas 1.1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,748 kB
  • sloc: python: 26,450; makefile: 147; sh: 25
file content (44 lines) | stat: -rw-r--r-- 1,274 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
34
35
36
37
38
39
40
41
42
43
44
# See https://github.com/python-versioneer/python-versioneer
name: "Update Versioneer"
on:
  workflow_dispatch:
  schedule:
    - cron: "0 6 1 * *" # 1st day of each month at 06:00 UTC
  push:
    paths:
      - "setup.cfg"
      - ".github/workflows/versioneer.yml"

jobs:
  versioneer:
    runs-on: ubuntu-latest
    if: github.repository == 'geopandas/geopandas'
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-python@v5
      - name: Install and run versioneer
        run: |
          pip install versioneer
          versioneer install
      - name: Run pre-commit
        run: |
          pip install pre-commit
          pre-commit run --all-files
      - name: Upload artifact
        uses: actions/upload-artifact@v4
        with:
          path: versioneer.py
      - name: Ignore changes in __init__
        run: |
          git reset -- geopandas/__init__.py
          git checkout -- geopandas/__init__.py
      - name: Create PR
        uses: peter-evans/create-pull-request@v7
        with:
          title: "Update Versioneer"
          branch: update-versioneer
          base: main
          commit-message: "[Bot] Update Versioneer"

          body: |
            Automatic update of Versioneer by the `versioneer.yml` workflow.