-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added linting workflow; added test workflow for pypi build; python version bump for pypi build workflow
- Loading branch information
1 parent
6c209b4
commit 7a14dc4
Showing
4 changed files
with
137 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: linting | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
linting-requirements-install: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [ "3.7", "3.8", "3.9", "3.10" ] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: install linting requirements | ||
run: | | ||
pip install --upgrade pip | ||
pip install flake8 pylint | ||
- name: Install project requirements | ||
run: pip install -r requirements.txt | ||
|
||
- name: Lint with flake8 | ||
run: flake8 certbot_dns_porkbun --count --select=E9,F63,F7,F82 --show-source --statistics | ||
|
||
- name: Lint with pylint | ||
run: pylint certbot_dns_porkbun -d C,R,W | ||
|
||
linting-setup-install: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [ "3.7", "3.8", "3.9", "3.10" ] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: install linting requirements | ||
run: | | ||
pip install --upgrade pip | ||
pip install flake8 pylint | ||
- name: Install project | ||
run: pip install . | ||
|
||
- name: Lint with flake8 | ||
run: flake8 certbot_dns_porkbun --count --select=E9,F63,F7,F82 --show-source --statistics | ||
|
||
- name: Lint with pylint | ||
run: pylint certbot_dns_porkbun -d C,R,W |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: pypi build test | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
linting-setup-install: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [ "3.7", "3.8", "3.9", "3.10" ] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: install linting requirements | ||
run: | | ||
pip install --upgrade pip | ||
pip install flake8 pylint | ||
- name: Install project | ||
run: pip install . | ||
|
||
- name: Lint with flake8 | ||
run: flake8 certbot_dns_porkbun --count --select=E9,F63,F7,F82 --show-source --statistics | ||
|
||
- name: Lint with pylint | ||
run: pylint certbot_dns_porkbun -d C,R,W | ||
|
||
build: | ||
name: Build distribution | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python 3.7 | ||
uses: actions/setup-python@v3.1.2 | ||
with: | ||
python-version: 3.7 | ||
|
||
- name: Install pep517 | ||
run: >- | ||
python -m | ||
pip install | ||
pep517 | ||
--user | ||
- name: Build a binary wheel and a source tarball | ||
run: >- | ||
python -m | ||
pep517.build | ||
--source | ||
--binary | ||
--out-dir dist/ | ||
. | ||
- name: Upload distribution artifact for other jobs | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: certbot_dns_porkbun_dist | ||
path: dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters