Skip to content

Commit 324e0cd

Browse files
committed
sd
1 parent d2fbb0e commit 324e0cd

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,15 @@ on:
88
branches: [ master ]
99
pull_request:
1010
branches: [ master ]
11+
workflow_dispatch:
12+
inputs:
13+
logLevel:
14+
default: 'warning'
1115

1216
jobs:
1317
build:
18+
permissions:
19+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
1420

1521
runs-on: ubuntu-latest
1622
strategy:
@@ -19,16 +25,20 @@ jobs:
1925
# python-version: [3.5, 3.6, 3.7, 3.8]
2026

2127
steps:
22-
- uses: actions/checkout@v2
28+
- name: Inject slug/short variables
29+
uses: rlespinasse/[email protected]
30+
- uses: actions/checkout@master
31+
# - name: Install ubuntu deps
32+
# run: |
33+
# sudo apt-get update
2334
- name: Set up Python ${{ matrix.python-version }}
2435
uses: actions/setup-python@v1
2536
with:
2637
python-version: ${{ matrix.python-version }}
27-
- name: Lint with flake8
38+
- name: Install dependencies
2839
run: |
29-
pip install flake8
30-
# stop the build if there are Python syntax errors or undefined names
31-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
40+
python -m pip install --upgrade pip
41+
3242
# # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
3343
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
3444
#The below is disabled pending https://github.com/sanskrit-coders/jyotisha/runs/1142973750
@@ -42,3 +52,8 @@ jobs:
4252
run: |
4353
pip install pytest
4454
pytest
55+
- name: Upload package
56+
if: ${{ github.event_name != 'pull_request'}}
57+
with:
58+
skip-existing: true
59+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)