Compare commits
26 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
dd3499008a | ||
|
28c8e0f1bb | ||
|
6211c9e782 | ||
|
bfa9ebd6c4 | ||
|
1031308b0f | ||
|
b2424dd716 | ||
|
163069e3e9 | ||
|
b27d9013b9 | ||
|
9b2045d6ae | ||
|
d0fc1ed673 | ||
|
35c7625dcb | ||
|
8af169f639 | ||
|
e53cb1cc05 | ||
|
3d1675534d | ||
|
41ad3f64e7 | ||
|
ddc64c36e5 | ||
|
34a7b97cd5 | ||
|
36c9ea0015 | ||
|
3c2c28b694 | ||
|
663f953379 | ||
|
80cf5977d3 | ||
|
980695382f | ||
|
1c8ecc65e8 | ||
|
3b54ea334e | ||
|
d77613de91 | ||
|
ead5cff442 |
25
.github/workflows/ci.yaml
vendored
25
.github/workflows/ci.yaml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: Test tesla_api
|
name: Tests
|
||||||
|
|
||||||
on: pull_request
|
on: pull_request
|
||||||
|
|
||||||
@@ -6,12 +6,22 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
name: Tests
|
name: Tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
continue-on-error: ${{ matrix.experimental }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [3.6, 3.7, 3.8, 3.9]
|
python-version:
|
||||||
|
- 3.6
|
||||||
|
- 3.7
|
||||||
|
- 3.8
|
||||||
|
- 3.9
|
||||||
|
experimental: [false]
|
||||||
|
include:
|
||||||
|
- python-version: 3.10.0-alpha - 3.10.0
|
||||||
|
experimental: true
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
@@ -20,10 +30,11 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
pip install --upgrade pip
|
pip install --upgrade pip
|
||||||
pip install -r requirements-dev.txt
|
pip install -r requirements-dev.txt
|
||||||
pip install codecov
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
make coverage
|
make coverage
|
||||||
- name: Upload coverage to Codecov
|
- name: Upload coverage
|
||||||
run: |
|
uses: codecov/codecov-action@v1
|
||||||
codecov
|
with:
|
||||||
|
file: ./coverage.xml
|
||||||
|
flags: unit
|
||||||
|
31
.github/workflows/pypi.yml
vendored
Normal file
31
.github/workflows/pypi.yml
vendored
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
name: Publish to PyPI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags: [ 'v*' ]
|
||||||
|
|
||||||
|
env:
|
||||||
|
DEFAULT_PYTHON: 3.9
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
publish:
|
||||||
|
name: Publish to PyPI
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: ${{ env.DEFAULT_PYTHON }}
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
pip install --upgrade build
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
|
python -m build
|
||||||
|
- name: Publish to PyPI
|
||||||
|
uses: pypa/gh-action-pypi-publish@master
|
||||||
|
with:
|
||||||
|
password: ${{ secrets.PYPI_API_TOKEN }}
|
2
Makefile
2
Makefile
@@ -11,7 +11,7 @@ vtest: flake
|
|||||||
py.test -s ./tests/
|
py.test -s ./tests/
|
||||||
|
|
||||||
cov cover coverage: flake
|
cov cover coverage: flake
|
||||||
py.test -s ./tests/ --cov=aiohttp_security --cov=tests --cov-report=html --cov-report=term
|
py.test -s ./tests/ --cov=aiohttp_security --cov=tests --cov-report=html --cov-report=xml --cov-report=term
|
||||||
@echo "open file://`pwd`/coverage/index.html"
|
@echo "open file://`pwd`/coverage/index.html"
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
@@ -13,6 +13,6 @@ aioredis==1.3.1
|
|||||||
hiredis==1.1.0
|
hiredis==1.1.0
|
||||||
passlib==1.7.4
|
passlib==1.7.4
|
||||||
cryptography==3.3.1
|
cryptography==3.3.1
|
||||||
aiohttp==3.7.3
|
aiohttp<3.7
|
||||||
pytest-aiohttp==0.3.0
|
pytest-aiohttp==0.3.0
|
||||||
pyjwt==1.7.1
|
pyjwt==1.7.1
|
||||||
|
Reference in New Issue
Block a user