Skip to content
Merged
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
12 changes: 8 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.8, 3.9, '3.10', '3.11', '3.12']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
os: [ubuntu-latest, macOS-latest, windows-latest]
backend: ['local', 'db']

steps:
- uses: actions/checkout@v3.4.0
Expand All @@ -31,15 +32,18 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install -e . -r tests/requirements.txt
- name: Unit tests
- name: Unit tests (local)
if: matrix.backend == 'local'
run: pytest -m "not mongo"
- name: Unit tests (DB)
if: matrix.backend == 'db'
env:
CACHIER_TEST_HOST: ${{ secrets.CACHIER_TEST_HOST }}
CACHIER_TEST_DB: ${{ secrets.CACHIER_TEST_DB }}
CACHIER_TEST_USERNAME: ${{ secrets.CACHIER_TEST_USERNAME }}
CACHIER_TEST_PASSWORD: ${{ secrets.CACHIER_TEST_PASSWORD }}
CACHIER_TEST_VS_LIVE_MONGO: ${{ secrets.CACHIER_TEST_VS_LIVE_MONGO }}
run: |
pytest
run: pytest -m "mongo"
- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v3
with:
Expand Down
1 change: 1 addition & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ markers =
memory: test the memory core
pickle: test the pickle core
addopts =
--color=yes
# --doctest-modules
--cov=cachier
--cov-report term
Expand Down