mirror of
https://github.com/blazickjp/arxiv-mcp-server.git
synced 2025-07-25 20:38:49 +03:00
update
This commit is contained in:
29
.github/workflows/badge.yml
vendored
Normal file
29
.github/workflows/badge.yml
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
name: Test Status Badge
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main, master ]
|
||||
workflow_run:
|
||||
workflows: ["Run Tests"]
|
||||
branches: [ main, master ]
|
||||
types:
|
||||
- completed
|
||||
|
||||
jobs:
|
||||
badge:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Generate test status badge
|
||||
uses: schneegans/dynamic-badges-action@v1.6.0
|
||||
with:
|
||||
auth: ${{ secrets.GIST_SECRET }}
|
||||
gistID: ${{ secrets.GIST_ID }}
|
||||
filename: test-status.json
|
||||
label: tests
|
||||
message: ${{ github.event.workflow_run.conclusion == 'success' && 'passing' || 'failing' }}
|
||||
color: ${{ github.event.workflow_run.conclusion == 'success' && 'brightgreen' || 'red' }}
|
||||
21
.github/workflows/tests.yml
vendored
21
.github/workflows/tests.yml
vendored
@@ -47,6 +47,23 @@ jobs:
|
||||
# or just:
|
||||
# uv pip install --system -e .
|
||||
|
||||
- name: Run tests with pytest
|
||||
# Run tests differently based on platform
|
||||
- name: Run tests on Linux/macOS
|
||||
if: runner.os != 'Windows'
|
||||
run: |
|
||||
pytest --cov=./ --cov-report=xml -v
|
||||
pytest --cov=./ --cov-report=xml -v
|
||||
|
||||
- name: Run tests on Windows
|
||||
if: runner.os == 'Windows'
|
||||
run: |
|
||||
pytest --cov=./ --cov-report=xml -v
|
||||
|
||||
# Upload coverage to Codecov
|
||||
- name: Upload coverage to Codecov
|
||||
if: runner.os == 'Linux' && matrix.python-version == '3.11'
|
||||
uses: codecov/codecov-action@v3
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
file: ./coverage.xml
|
||||
flags: unittests
|
||||
fail_ci_if_error: false
|
||||
@@ -1,6 +1,7 @@
|
||||
[](https://twitter.com/JoeBlazick)
|
||||
[](https://smithery.ai/server/arxiv-mcp-server)
|
||||
[](https://www.python.org/downloads/)
|
||||
[](https://github.com/blazickjp/arxiv-mcp-server/actions/workflows/tests.yml)
|
||||
[](https://opensource.org/licenses/MIT)
|
||||
[](https://pypi.org/project/arxiv-mcp-server/)
|
||||
[](https://pypi.org/project/arxiv-mcp-server/)
|
||||
|
||||
Reference in New Issue
Block a user