File tree Expand file tree Collapse file tree 3 files changed +18
-4
lines changed Expand file tree Collapse file tree 3 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 1
1
name : mplfinance Checks
2
+ permissions :
3
+ contents : read
2
4
on : [ workflow_dispatch, pull_request ]
3
5
jobs :
4
6
Regression_Tests :
Original file line number Diff line number Diff line change 1
1
name : Upload Mplfinance to PyPI
2
+ permissions :
3
+ contents : read
2
4
3
5
on :
4
6
workflow_dispatch :
10
12
11
13
jobs :
12
14
build_and_deploy :
15
+ permissions :
16
+ id-token : write
17
+ attestations : write
18
+ contents : read
13
19
runs-on : ubuntu-latest
14
20
steps :
15
21
- name : Checkout Repository
18
24
ref : ${{ github.event.inputs.tag }}
19
25
persist-credentials : false
20
26
21
- - name : Display Coded Version
27
+ - name : Display Coded Version
22
28
# run: git show ${{ github.sha }}:src/mplfinance/_version.py
23
29
run : egrep 'version_info .*=' src/mplfinance/_version.py
24
30
32
38
python -m pip install --upgrade pip
33
39
pip install setuptools wheel twine
34
40
35
- - name : Build
41
+ - name : Build
36
42
run : |
37
43
python setup.py sdist bdist_wheel
38
44
ls -l dist/*
Original file line number Diff line number Diff line change 1
1
name : Upload Mplfinance to TestPyPI
2
+ permissions :
3
+ contents : read
2
4
3
5
on :
4
6
workflow_dispatch :
@@ -12,13 +14,17 @@ jobs:
12
14
build_and_deploy :
13
15
runs-on : ubuntu-latest
14
16
steps :
17
+ permissions :
18
+ id-token : write
19
+ attestations : write
20
+ contents : read
15
21
- name : Checkout Repository
16
22
uses : actions/checkout@v3
17
23
with :
18
24
ref : ${{ github.event.inputs.tag }}
19
25
persist-credentials : false
20
26
21
- - name : Display Coded Version
27
+ - name : Display Coded Version
22
28
# run: git show ${{ github.sha }}:src/mplfinance/_version.py
23
29
run : egrep 'version_info .*=' src/mplfinance/_version.py
24
30
32
38
python -m pip install --upgrade pip
33
39
pip install setuptools wheel twine
34
40
35
- - name : Build
41
+ - name : Build
36
42
run : |
37
43
python setup.py sdist bdist_wheel
38
44
ls -l dist/*
You can’t perform that action at this time.
0 commit comments