Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
habedi committed Mar 1, 2025
1 parent 6457816 commit cc4a6a3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ name: Publish to PyPI

on:
workflow_dispatch: # Enable manual runs
tag:
- 'v*' # Run on version tags

jobs:

# Run tests before publishing
# Run the tests before publishing to PyPI
call_tests:
uses: ./.github/workflows/tests.yml

Expand All @@ -30,10 +32,6 @@ jobs:
run: |
poetry install
# - name: Update Version
# run: |
# poetry version patch # Use 'minor' or 'major' for minor or major version bumps

- name: Build and Publish Package
run: |
poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
Expand Down
15 changes: 6 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Tests

on:
# push:
# branches:
# - main
workflow_dispatch: # Enable manual runs
workflow_call: # Make this workflow available to be called by other workflows

Expand All @@ -13,7 +10,7 @@ jobs:

strategy:
matrix:
python-version: [ "3.10", "3.11", "3.12" ]
python-version: [ "3.10", "3.11", "3.12", "3.13" ]

steps:
- name: Checkout Repository
Expand All @@ -37,11 +34,11 @@ jobs:
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: |
poetry run pytest tests/ --cov --doctest-modules --junitxml=junit/test-results-${{ matrix.python-version }}.xml
poetry run pytest tests/ --cov --doctest-modules --cov-report=xml
continue-on-error: false

- name: Upload Test Results
uses: actions/upload-artifact@v4
- name: Upload Coverage Reports to Codecov
uses: codecov/codecov-action@v5
with:
name: pytest-results-${{ matrix.python-version }}
path: junit/test-results-${{ matrix.python-version }}.xml
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit cc4a6a3

Please sign in to comment.