ci: initial woodpecker support

enable-ci
argrento 2023-06-03 19:26:06 +02:00
rodzic 106374a489
commit c9f21b819d
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: AF1F4775B5A95299
4 zmienionych plików z 37 dodań i 16 usunięć

Wyświetl plik

@ -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

31
.woodpecker.yml 100644
Wyświetl plik

@ -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

Wyświetl plik

@ -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`.

Wyświetl plik

@ -0,0 +1,5 @@
from unittest import TestCase
class TryTesting(TestCase):
def test_always_passes(self):
self.assertTrue(True)