Skip to content

Commit

Permalink
workflow-updates
Browse files Browse the repository at this point in the history
  • Loading branch information
A. Schulze committed Nov 13, 2023
1 parent 55d372a commit 7eea56a
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 11 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/markdownlint.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
name: Markdownlint

on: [push, pull_request]

name: markdownlint
on:
push:
pull_request:
jobs:
markdownlint:

run_markdownlint:
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v2
- name: Run mdl
- name: checkout
uses: actions/checkout@v4
- name: Run markdownlint
uses: actionshub/markdownlint@main
28 changes: 28 additions & 0 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: pylint
on:
push:
pull_request:
jobs:
run_pylint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.x]
steps:
- name: checkout
uses: actions/checkout@v4
- name: set up python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: install pylint
run: |
python -m pip install --upgrade pip
pip install pylint
- name: install requirements
run:
test -f requirements.txt && pip install -r requirements.txt
- name: run pylint
shell: sh
run: |
find . -name '*.py' -print0 | xargs --null --no-run-if-empty pylint
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# check_dns_respond_as_expected

[![Actions Status](https://github.com/andreasschulze/check_dns_respond_as_expected/workflows/Markdownlint/badge.svg)](https://github.com/andreasschulze/check_dns_respond_as_expected/actions?query=workflow%3AMarkdownlint)
[![markdownlint](https://github.com/andreasschulze/check_dns_respond_as_expected/actions/workflows/markdownlint.yml/badge.svg)](https://github.com/andreasschulze/check_dns_respond_as_expected/actions/workflows/markdownlint.yml)
[![pylint](https://github.com/andreasschulze/check_dns_respond_as_expected/actions/workflows/pylint.yml/badge.svg)](https://github.com/andreasschulze/check_dns_respond_as_expected/actions/workflows/pylint.yml)

Challenge: you plan to modify a DNS resolver. You want to be sure, nothing
will break. Define sample records with expected responses and let this script
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dnspython

0 comments on commit 7eea56a

Please sign in to comment.