Skip to content

Commit

Permalink
Merge pull request #16 from opalsecurity/andrewsy-pypi
Browse files Browse the repository at this point in the history
[COR-1983] Publish SDK to PyPI
  • Loading branch information
andrewsy-opal authored Nov 27, 2024
2 parents 04ab476 + cbaed38 commit bf90052
Show file tree
Hide file tree
Showing 551 changed files with 2,193 additions and 13,348 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build-and-publish-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish to PyPI
on:
push:
tags:
- 'v*'
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install build dependencies
run: |
python -m pip install --upgrade pip
python -m pip install build twine setuptools_scm
- name: Build the package
run: |
python -m build
- name: Publish to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_ACCESS_TOKEN }}
run: |
python -m twine upload dist/* --skip-existing
2 changes: 1 addition & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# ref: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: opal Python package
name: opal_security Python package

on: [push, pull_request]

Expand Down
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ stages:
script:
- pip install -r requirements.txt
- pip install -r test-requirements.txt
- pytest --cov=opal
- pytest --cov=opal_security

pytest-3.8:
extends: .pytest
Expand Down
Loading

0 comments on commit bf90052

Please sign in to comment.