Skip to content

Merge pull request #98 from jaredhendrickson13/dependabot/github_acti… #30

Merge pull request #98 from jaredhendrickson13/dependabot/github_acti…

Merge pull request #98 from jaredhendrickson13/dependabot/github_acti… #30

Workflow file for this run

name: Quality
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
schedule:
- cron: '0 12 5 * *'
jobs:
check_pylint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
pip install -r requirements-dev.txt
- name: Analysing the code with pylint
run: |
pylint $(git ls-files '*.py')
check_coverage:
runs-on: ubuntu-latest
needs: [check_pylint]
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
env:
GCLOUD_DNS_JSON: '${{ secrets.GCLOUD_DNS_JSON }}'
steps:
- uses: actions/checkout@v4
- name: Install simple_acme_dns package with dev dependencies
run: |
python3 -m pip install .
python3 -m pip install -r requirements-dev.txt
- name: Test simple_acme_dns package to ensure 100% coverage
run: |
python3 -m coverage run --module unittest simple_acme_dns/tests/test_*
python3 -m coverage report --show-missing --fail-under 100