Skip to content

Commit

Permalink
Merge pull request #12 from hexfrost/config/add-pypi-config
Browse files Browse the repository at this point in the history
Config/add pypi config
  • Loading branch information
kaziamov authored Jan 21, 2024
2 parents 51682df + a913463 commit 9efedf9
Show file tree
Hide file tree
Showing 3 changed files with 712 additions and 21 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Coverage

on:
push:
branches: [ "main" ]

jobs:
build:

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- run: pip install poetry
- run: make install
- name: Test & publish code coverage
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: make test-coverage
debug: true
16 changes: 16 additions & 0 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Publish Release to PYPI

on:
push:
branches:
- main

jobs:
deployment:
runs-on: ubuntu-latest
environment: release
steps:
- name: Build and Publish
uses: actions/checkout@v2
- run: poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
- run: poetry publish --build
Loading

0 comments on commit 9efedf9

Please sign in to comment.