Skip to content

Commit

Permalink
upload test results (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjchambers authored Jan 17, 2025
1 parent 6baeb12 commit ff68e36
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,20 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Run `make test`
run: make testci
run:
uv run python -m pytest -vs ./tests/unit_tests ./tests/integration_tests/
--stores=mem --stores=mem_denorm --stores=cassandra --stores=chroma --stores=opensearch
--junitxml=junit/test-results-${{ matrix.python-version }}.xml

- name: Run `make mypy`
run: make mypy

- name: Upload coverage reports to Codecov with GitHub Action on Python 3.11
uses: codecov/codecov-action@v4
if: ${{ matrix.python-version == '3.11' }}
- name: Upload test results
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: pytest-results-${{ matrix.python-version }}
path: junit/test-results-${{ matrix.python-version }}.xml

# check-docs:
# runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ coverage.xml
.hypothesis/
.pytest_cache/
cover/
junit/test-results.xml

# Translations
*.mo
Expand Down
7 changes: 1 addition & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,7 @@ unit:
.PHONY: test
test:
@echo "🚀 Testing code: Running pytest"
@uv run python -m pytest -vs ./tests/unit_tests ./tests/integration_tests/ --cov --cov-config=pyproject.toml --cov-report=xml --stores=all

.PHONY: test
testci:
@echo "🚀 Testing code: Running pytest"
@uv run python -m pytest -vs ./tests/unit_tests ./tests/integration_tests/ --cov --cov-config=pyproject.toml --cov-report=xml --stores=mem --stores=mem_denorm --stores=cassandra --stores=chroma --stores=opensearch
@uv run python -m pytest -vs ./tests/unit_tests ./tests/integration_tests/ --stores=all

.PHONY: mypy
mypy:
Expand Down

0 comments on commit ff68e36

Please sign in to comment.