Skip to content

Remove unused configuration #74

Remove unused configuration

Remove unused configuration #74

Workflow file for this run

---
name: Tests
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
env:
DEFAULT_PYTHON: "3.11"
jobs:
pytest:
name: Testing on Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12"]
steps:
- name: ⤵️ Checkout code
uses: actions/[email protected]
- name: 🚧 Setup Poetry
run: pip install poetry
- name: 🐍 Setup Python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
cache: poetry
- name: 🚧 Install dependencies
run: poetry install --no-root --only main,test --no-interaction
- name: 🚀 Run Pytest
run: poetry run pytest --cov pypaperless tests
- name: ⬆️ Upload coverage
uses: actions/[email protected]
with:
name: coverage-${{ matrix.python-version }}
path: .coverage
coverage:
name: Coverage report
runs-on: ubuntu-latest
needs: pytest
steps:
- name: ⤵️ Checkout code
uses: actions/[email protected]
- name: ⬇️ Download coverage
uses: actions/[email protected]
- name: 🚧 Setup Poetry
run: pip install poetry
- name: 🐍 Setup Python ${{ env.DEFAULT_PYTHON }}
uses: actions/[email protected]
with:
python-version: ${{ env.DEFAULT_PYTHON }}
cache: poetry
- name: 🚧 Install dependencies
run: poetry install --no-root --only main,test --no-interaction
- name: 🚀 Process coverage results
run: |
poetry run coverage combine coverage*/.coverage*
poetry run coverage xml -i
- name: ⬆️ Upload coverage to Codecov
uses: codecov/[email protected]
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
file: ./coverage.xml