Skip to content

Commit bf90052

Browse files
Merge pull request #16 from opalsecurity/andrewsy-pypi
[COR-1983] Publish SDK to PyPI
2 parents 04ab476 + cbaed38 commit bf90052

File tree

551 files changed

+2193
-13348
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

551 files changed

+2193
-13348
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Publish to PyPI
2+
on:
3+
push:
4+
tags:
5+
- 'v*'
6+
jobs:
7+
build-and-publish:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@v3
12+
- name: Set up Python
13+
uses: actions/setup-python@v4
14+
with:
15+
python-version: '3.11'
16+
- name: Install build dependencies
17+
run: |
18+
python -m pip install --upgrade pip
19+
python -m pip install build twine setuptools_scm
20+
- name: Build the package
21+
run: |
22+
python -m build
23+
- name: Publish to PyPI
24+
env:
25+
TWINE_USERNAME: __token__
26+
TWINE_PASSWORD: ${{ secrets.PYPI_ACCESS_TOKEN }}
27+
run: |
28+
python -m twine upload dist/* --skip-existing

.github/workflows/python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# ref: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
55

6-
name: opal Python package
6+
name: opal_security Python package
77

88
on: [push, pull_request]
99

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ stages:
1212
script:
1313
- pip install -r requirements.txt
1414
- pip install -r test-requirements.txt
15-
- pytest --cov=opal
15+
- pytest --cov=opal_security
1616

1717
pytest-3.8:
1818
extends: .pytest

0 commit comments

Comments
 (0)