Commit 47a1cfc 1 parent d45fdd2 commit 47a1cfc Copy full SHA for 47a1cfc
File tree 5 files changed +42
-6
lines changed
5 files changed +42
-6
lines changed Original file line number Diff line number Diff line change
1
+ [bumpversion]
2
+ commit = True
3
+ tag = True
4
+ current_version = 0.0.2
5
+
6
+ [bumpversion:file:setup.py]
7
+ search = version =" {current_version}"
8
+ replace = version =" {new_version}"
Original file line number Diff line number Diff line change 1
- name : CI
1
+ name : Test and release
2
2
3
3
on : [push, pull_request]
4
4
5
5
jobs :
6
- build :
7
-
6
+ test :
8
7
runs-on : ubuntu-latest
9
-
10
8
steps :
11
-
12
9
- uses : actions/checkout@v2
13
10
14
11
- name : Set up Python 3.9
28
25
- name : Pytest
29
26
run : |
30
27
pytest -s --cov=predict_pv_yield
28
+
29
+ release :
30
+ needs : test
31
+ uses : openclimatefix/.github/.github/workflows/python-release.yml@main
32
+ secrets :
33
+ token : ${{ secrets.token }}
Original file line number Diff line number Diff line change
1
+ include *.txt
Original file line number Diff line number Diff line change 1
1
# PVNet
2
- [ ![ CI ] ( https://github.com/openclimatefix/PVNet/actions/workflows/ci .yml/badge.svg )] ( https://github.com/openclimatefix/PVNet/actions/workflows/ci .yml )
2
+ [ ![ Test and release ] ( https://github.com/openclimatefix/PVNet/actions/workflows/test-release .yml/badge.svg )] ( https://github.com/openclimatefix/PVNet/actions/workflows/test-release .yml )
3
3
4
4
## Setup
5
5
``` bash
Original file line number Diff line number Diff line change
1
+ """ Usual setup file for package """
2
+ # read the contents of your README file
3
+ from pathlib import Path
4
+
5
+ from setuptools import find_packages , setup
6
+
7
+ this_directory = Path (__file__ ).parent
8
+ long_description = (this_directory / "README.md" ).read_text ()
9
+ install_requires = (this_directory / "requirements.txt" ).read_text ().splitlines ()
10
+
11
+ setup (
12
+ name = "PVNet" ,
13
+ version = "0.0.2" ,
14
+ license = "MIT" ,
15
+ description = "PVNet" ,
16
+ author = "Peter Dudfield" ,
17
+
18
+ company = "Open Climate Fix Ltd" ,
19
+ install_requires = install_requires ,
20
+ long_description = long_description ,
21
+ long_description_content_type = "text/markdown" ,
22
+ include_package_data = True ,
23
+ packages = find_packages (),
24
+ )
You can’t perform that action at this time.
0 commit comments