forked from pysal/spopt
-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (48 loc) · 1.33 KB
/
versioneer.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# See https://github.com/python-versioneer/python-versioneer
name: "Update Versioneer"
on:
workflow_dispatch:
inputs:
version:
description: Manual Versioneer Run
default: test
required: false
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
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install and run versioneer
run: |
pip install versioneer
versioneer install
- name: Blacken code
uses: psf/black@stable
with:
options: "--verbose"
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
path: versioneer.py
- name: Ignore changes in __init__
run: |
git reset -- spopt/__init__.py
git checkout -- spopt/__init__.py
- name: Create PR
uses: peter-evans/create-pull-request@v4
with:
title: "Update Versioneer"
branch: update-versioneer
base: main
commit-message: "[Bot] Update Versioneer"
body: |
Automatic update of Versioneer by the `versioneer.yml` workflow.