Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): Update dependencies #264

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily
interval: weekly
- package-ecosystem: pip
directory: /
schedule:
interval: daily
- package-ecosystem: pip
directory: /examples/pull-progress
schedule:
interval: weekly
15 changes: 10 additions & 5 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,21 @@ jobs:
id-token: write
contents: write
steps:
- uses: actions/checkout@v4
- run: pipx install poetry
- uses: actions/setup-python@v5
- name: checkout
uses: actions/checkout@v4
- name: install poetry
run: pipx install poetry
- name: setup latest python 3
uses: actions/setup-python@v5
with:
python-version: '3.x'
cache: poetry
- run: |
- name: build new version ${{ env.GITHUB_REF_NAME }}
run: |
poetry version ${GITHUB_REF_NAME#v}
poetry build
- uses: pypa/gh-action-pypi-publish@release/v1
- run: gh release upload $GITHUB_REF_NAME dist/*
- name: upload new release ${{ env.GITHUB_REF_NAME }}
run: gh release upload $GITHUB_REF_NAME dist/*
env:
GH_TOKEN: ${{ github.token }}
23 changes: 15 additions & 8 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,31 @@ jobs:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: pipx install poetry
- uses: actions/setup-python@v5
- name: checkout
uses: actions/checkout@v4
- name: install poetry
run: pipx install poetry
- name: setup python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: poetry
- run: poetry install --with=dev
- run: poetry run ruff check --output-format=github .
- run: poetry run ruff format --check .
- name: install (dev) dependencies
run: poetry install --with=dev
- name: lint code
run: poetry run ruff check --output-format=github .
- name: check formatting
run: poetry run ruff format --check .
- run: poetry run pytest . --junitxml=junit/test-results-${{ matrix.python-version }}.xml --cov=ollama --cov-report=xml --cov-report=html
- name: check poetry.lock is up-to-date
run: poetry check --lock
- name: check requirements.txt is up-to-date
run: |
poetry export >requirements.txt
git diff --exit-code requirements.txt
- uses: actions/upload-artifact@v4
- name: upload test results
uses: actions/upload-artifact@v4
with:
name: pytest-results-${{ matrix.python-version }}
path: junit/test-results-${{ matrix.python-version }}.xml
if: ${{ always() }}
if: always()
2 changes: 1 addition & 1 deletion examples/pull-progress/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
tqdm==4.66.1
tqdm==4.66.5
Loading