Skip to content

Build(deps): Bump platformdirs from 3.2.0 to 3.5.0 #2331

Build(deps): Bump platformdirs from 3.2.0 to 3.5.0

Build(deps): Bump platformdirs from 3.2.0 to 3.5.0 #2331

Workflow file for this run

name: Build and test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
linting:
name: Linting
runs-on: "ubuntu-latest"
strategy:
matrix:
python-version:
- "3.9"
- "3.10"
- "3.11"
steps:
- uses: actions/checkout@v3
- name: Install and check with black, pylint and pontos.version
uses: greenbone/actions/lint-python@v2
with:
packages: pontos tests scripts
version: ${{ matrix.python-version }}
cache: "true"
test:
name: Run all tests
runs-on: "ubuntu-latest"
strategy:
matrix:
python-version:
- "3.9"
- "3.10"
- "3.11"
steps:
- uses: actions/checkout@v3
- name: Install python, poetry and dependencies
uses: greenbone/actions/poetry@v2
with:
version: ${{ matrix.python-version }}
cache: "true"
cache-poetry-installation: "true"
- name: Run unit tests
run: poetry run python -m unittest
codecov:
name: Upload coverage to codecov.io
needs: test
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
- name: Install and calculate and upload coverage to codecov.io
uses: greenbone/actions/coverage-python@v2
with:
version: "3.10"
cache: "true"
token: ${{ secrets.CODECOV_TOKEN }}
check-version:
name: Check versioning for consistency
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
- name: Install python, poetry and dependencies
uses: greenbone/actions/poetry@v2
with:
cache: "true"
cache-poetry-installation: "true"
- name: Check version
run: |
poetry run pontos-version verify current