File tree Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -20,17 +20,27 @@ jobs:
2020 python-version : ${{ matrix.python-version }}
2121 cache : poetry
2222 - run : poetry install --with=dev
23+ - run : poetry run pytest . --junitxml=junit/test-results-${{ matrix.python-version }}.xml --cov=ollama --cov-report=xml --cov-report=html
24+ - uses : actions/upload-artifact@v4
25+ with :
26+ name : pytest-results-${{ matrix.python-version }}
27+ path : junit/test-results-${{ matrix.python-version }}.xml
28+ if : ${{ always() }}
29+ lint :
30+ runs-on : ubuntu-latest
31+ steps :
32+ - uses : actions/checkout@v4
33+ - run : pipx install poetry
34+ - uses : actions/setup-python@v5
35+ with :
36+ python-version : " 3.13"
37+ cache : poetry
38+ - run : poetry install --with=dev
2339 - run : poetry run ruff check --output-format=github .
2440 - run : poetry run ruff format --check .
25- - run : poetry run pytest . --junitxml=junit/test-results-${{ matrix.python-version }}.xml --cov=ollama --cov-report=xml --cov-report=html
2641 - name : check poetry.lock is up-to-date
2742 run : poetry check --lock
2843 - name : check requirements.txt is up-to-date
2944 run : |
3045 poetry export >requirements.txt
3146 git diff --exit-code requirements.txt
32- - uses : actions/upload-artifact@v4
33- with :
34- name : pytest-results-${{ matrix.python-version }}
35- path : junit/test-results-${{ matrix.python-version }}.xml
36- if : ${{ always() }}
You can’t perform that action at this time.
0 commit comments