diff options
| author | Alex <git@ajschof.me> | 2025-02-17 17:04:52 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-17 17:04:52 +0000 |
| commit | 37105322d5fefffe84fd21960d87585286453552 (patch) | |
| tree | 8ad32d81367a278f26c5a87b5039f058f34aacab | |
| parent | 219ab7976938f5e6a2804e2096480bb242647b00 (diff) | |
| parent | abdd2753227782b548672ae21b6b0d1345bea057 (diff) | |
| download | gdpr-obfuscator-37105322d5fefffe84fd21960d87585286453552.tar.gz gdpr-obfuscator-37105322d5fefffe84fd21960d87585286453552.zip | |
Merge pull request #5 from ajschofield/upload-coverage
setup workflow to upload cov info to deepsource
| -rw-r--r-- | .github/workflows/main.yml | 38 | ||||
| -rw-r--r-- | pyproject.toml | 12 |
2 files changed, 41 insertions, 9 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..558c70e --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,38 @@ +name: Test and Report Coverage + +on: + pull_request: + branches: + - stable + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.sha }} + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.13' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install poetry + poetry install + + - name: Run tests with pytest-cov + run: | + poetry run pytest --cov=./ --cov-report=xml:coverage.xml + + - name: Report results to DeepSource + env: + DEEPSOURCE_DSN: ${{ secrets.DEEPSOURCE_DSN }} + run: | + curl https://deepsource.io/cli | sh + ./bin/deepsource report --analyzer test-coverage --key python --value-file ./coverage.xml diff --git a/pyproject.toml b/pyproject.toml index d5db843..cc923b9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,19 +2,13 @@ name = "gdpr-obfuscator" version = "0.1.0" description = "A Python library designed to detect and remove Personally Identifiable Information (PII) from CSV files stored in an AWS S3 bucket." -authors = [ - {name = "Alex Schofield",email = "git@ajschof.me"} -] +authors = [{ name = "Alex Schofield", email = "git@ajschof.me" }] readme = "README.md" requires-python = ">=3.13" -dependencies = [ - "tabulate (>=0.9.0,<0.10.0)" -] +dependencies = ["tabulate (>=0.9.0,<0.10.0)"] [tool.poetry] -packages = [ - { include = "gdpr-obfuscator", from = "obfuscator" } -] +package-mode = false [tool.poetry.group.dev.dependencies] pytest = "8.3.4" |
