kopia lustrzana https://codeberg.org/argrento/huami-token
ci: initial woodpecker support
rodzic
106374a489
commit
c9f21b819d
15
.travis.yml
15
.travis.yml
|
@ -1,15 +0,0 @@
|
|||
language: python
|
||||
python:
|
||||
- "3.6"
|
||||
|
||||
# Install dependencies.
|
||||
install:
|
||||
- pip install -r requirements.txt
|
||||
|
||||
# Run linting and tests.
|
||||
script:
|
||||
- pytest --pylint
|
||||
|
||||
# Turn email notifications off.
|
||||
notifications:
|
||||
email: false
|
|
@ -0,0 +1,31 @@
|
|||
pipeline:
|
||||
standardize:
|
||||
image: python:3.9-buster
|
||||
when:
|
||||
event: pull_request
|
||||
commands:
|
||||
- python -m pip install --upgrade pip
|
||||
- python -m pip install -r requirements.txt
|
||||
- python -m pip install pylint flake8 mypy>=0.971
|
||||
- python -m flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
||||
- mypy --strict ./
|
||||
- python -m pylint -f parseable ./*.py
|
||||
|
||||
build:
|
||||
image: python:${TAG}-buster
|
||||
when:
|
||||
event: pull_request
|
||||
commands:
|
||||
- ls
|
||||
- python -m venv venv
|
||||
- /bin/bash -c "source venv/bin/activate"
|
||||
- python -m pip install --upgrade pip
|
||||
- python -m pip install -r requirements.txt
|
||||
- pytest tests/
|
||||
|
||||
matrix:
|
||||
TAG:
|
||||
- 3.7
|
||||
- 3.9
|
||||
- 3.8
|
||||
- 3.10
|
|
@ -7,7 +7,7 @@ Huami-token is now hosted on [codeberg.org](https://codeberg.org/argrento/huami-
|
|||
|
||||
# Huami-token
|
||||
|
||||
[![Build Status](https://travis-ci.org/argrento/huami-token.svg?branch=master)](https://travis-ci.org/argrento/huami-token)
|
||||
[![status-badge](https://ci.codeberg.org/api/badges/argrento/huami-token/status.svg)](https://ci.codeberg.org/argrento/huami-token)
|
||||
|
||||
Script to obtain watch or band bluetooth access token from Huami servers.
|
||||
It will also download AGPS data packs `cep_alm_pak.zip` and `cep_7days.zip`.
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
from unittest import TestCase
|
||||
|
||||
class TryTesting(TestCase):
|
||||
def test_always_passes(self):
|
||||
self.assertTrue(True)
|
Ładowanie…
Reference in New Issue