-
Notifications
You must be signed in to change notification settings - Fork 60
37 lines (30 loc) · 984 Bytes
/
manual_release.yml
File metadata and controls
37 lines (30 loc) · 984 Bytes
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
name: Manual Deploy
on: workflow_dispatch
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Set up Python
uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4
with:
python-version: '3.9'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
pip install build
pip install -r requirements_test.txt
- name: Test API
run: |
pylint prismacloud/api
- name: Build package
run: python -m build
- name: Run tests
run: |
coverage run -m unittest discover -v -s "./tests" -p "test*.py"
- name: Publish
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}