mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-19 14:54:21 +01:00
Merge pull request #4 from Davi0kProgramsThings/feature/ci-cd
Merge branch `feature/ci-cd` into branch `master`.
This commit is contained in:
1
.github/PULL_REQUEST_TEMPLATE.md
vendored
1
.github/PULL_REQUEST_TEMPLATE.md
vendored
@@ -11,6 +11,7 @@
|
|||||||
PR fixes the following issue:
|
PR fixes the following issue:
|
||||||
|
|
||||||
## Type of change
|
## Type of change
|
||||||
|
<!-- Select the most suitable choice and remove the others from the checklist -->
|
||||||
|
|
||||||
- [ ] Bug fix (non-breaking change which fixes an issue);
|
- [ ] Bug fix (non-breaking change which fixes an issue);
|
||||||
- [ ] New feature (non-breaking change which adds functionality);
|
- [ ] New feature (non-breaking change which adds functionality);
|
||||||
|
|||||||
31
.github/workflows/bitfinex-api-py-ci.yml
vendored
Normal file
31
.github/workflows/bitfinex-api-py-ci.yml
vendored
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
name: bitfinex-api-py-ci
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- feature/ci-cd
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- feature/ci-cd
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Set up Python 3.8
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: '3.8'
|
||||||
|
- name: Install bitfinex-api-py's dependencies
|
||||||
|
run: python -m pip install -r dev-requirements.txt
|
||||||
|
- name: Lint the project with pylint (and fail if score is lower than 10.00/10.00)
|
||||||
|
run: python -m pylint bfxapi
|
||||||
|
- name: Run mypy to check the correctness of type hinting (and fail if any error or warning is found)
|
||||||
|
run: python -m mypy bfxapi
|
||||||
|
- name: Execute project's unit tests (unittest)
|
||||||
|
run: python -m unittest bfxapi.tests
|
||||||
11
.travis.yml
Normal file
11
.travis.yml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
language: python
|
||||||
|
python:
|
||||||
|
- "3.8.0"
|
||||||
|
before_install:
|
||||||
|
- python -m pip install --upgrade pip
|
||||||
|
install:
|
||||||
|
- pip install -r dev-requirements.txt
|
||||||
|
script:
|
||||||
|
- python -m pylint bfxapi
|
||||||
|
- python -m mypy bfxapi
|
||||||
|
- python -m unittest bfxapi.tests
|
||||||
Reference in New Issue
Block a user