Skip to content

Commit

Permalink
debugging workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianGroeger96 committed Feb 14, 2024
1 parent 3e3d52c commit b49ab66
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/pytest-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Set up Python
uses: actions/setup-python@v4
Expand All @@ -29,10 +31,6 @@ jobs:
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install pytest pytest-cov
- name: Git submodule initialization
run: |
git submodule update --init --recursive
- name: Run pytest with coverage
run: |
python3 -m coverage run -m pytest tests --junitxml=report.xml; coverage report -i --include=src/*
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/upload-to-pip.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Upload to PIP

on:
release:
types: [created]
# Allows for manual triggering
workflow_dispatch:

jobs:
upload:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.8
- name: "Installs dependencies"
run: |
python3 -m pip install --upgrade pip
python3 -m pip install setuptools wheel twine
- name: "Builds and uploads to PyPI"
run: |
python3 setup.py sdist bdist_wheel
python3 -m twine upload --verbose dist/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TWINE_TOKEN }}

0 comments on commit b49ab66

Please sign in to comment.