This repository has been archived by the owner on Nov 5, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* drone: Fix types for setup.py Add types-setuptools package Add types-requests package Update badge to drone Add drone config
- Loading branch information
Showing
4 changed files
with
54 additions
and
4 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,45 @@ | ||
kind: pipeline | ||
type: docker | ||
name: test | ||
|
||
volumes: | ||
- name: pypirc | ||
host: | ||
path: /home/albertyw/.ssh/other/pypirc | ||
|
||
steps: | ||
- name: fetch | ||
image: alpine/git | ||
commands: | ||
- git fetch --tags | ||
|
||
- name: Test Python | ||
image: python:3.10 | ||
commands: | ||
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > "${HOME}/bin/cc-test-reporter" | ||
- chmod +x "${HOME}/bin/cc-test-reporter" | ||
- pip install -r requirements-test.txt | ||
- python setup.py develop | ||
- flake8 | ||
- mypy . --ignore-missing-imports | ||
- cc-test-reporter before-build | ||
- coverage run -m unittest | ||
- exitcode="$?" | ||
- coverage report -m | ||
- coverage xml | ||
- cc-test-reporter after-build --exit-code "$exitcode" | ||
environment: | ||
CC_TEST_REPORTER_ID: 0727323f34a2cf70cccd3efb0a94699f993ab495b138b7010f72f6bbfcbd6768 | ||
|
||
- name: Upload Python | ||
image: python:3.10 | ||
commands: | ||
- pip install twine | ||
- python setup.py sdist bdist_wheel | ||
- twine upload dist/* | ||
volumes: | ||
- name: pypirc | ||
path: /root/.pypirc | ||
when: | ||
event: | ||
- tag |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
# Testing | ||
coverage==6.3.2 # Test coverage | ||
flake8==4.0.1 # Python linting | ||
|
||
# Types | ||
mypy==0.941 # Static typing | ||
types-requests==2.27.13 # Type annotations for requests package | ||
types-setuptools==57.4.11 # Type annotations for setuptools package |
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