Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regular maintenance 202405 #27

Merged
merged 4 commits into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.8", "3.12"]
python-version: ["3.8", "3.11", "3.12"]

env:
OS: ${{ matrix.os }}
Expand Down Expand Up @@ -53,17 +53,26 @@ jobs:
pip install "setuptools>=64" --upgrade

# Install package in editable mode.
pip install --use-pep517 --prefer-binary --editable=.[service,develop,docs,test]
pip install --use-pep517 --prefer-binary --editable=.[develop,test]

- name: Setup "service" extra
if: matrix.python-version != '3.8' && matrix.python-version != '3.9' && matrix.python-version != '3.10'
run: |

# Install package in editable mode.
pip install --use-pep517 --prefer-binary --editable=.[service]

- name: Run linter and software tests
run: |
poe check

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: ./coverage.xml
flags: unittests
env_vars: OS,PYTHON
name: codecov-umbrella
fail_ci_if_error: false
fail_ci_if_error: true
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,15 @@
'develop': [
'build<2',
'bump2version==1.0.1',
'poethepoet<0.26',
'poethepoet<0.27',
'twine<6',
],
'service': [
'responder @ git+https://github.com/kennethreitz/responder.git@12a9b8a471',
'typesystem<0.5',
'responder @ git+https://github.com/kennethreitz/responder.git@e9613500daf',
'typesystem<0.3',
],
'test': [
'httpx<0.28',
'pytest<9',
'pytest-cov<6',
],
Expand Down
3 changes: 2 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import pytest
import vasuki.api


@pytest.fixture
def api():
import vasuki.api

return vasuki.api.api
4 changes: 4 additions & 0 deletions tests/test_service.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import uuid

import pytest

pytest.importorskip("responder")


def test_index(api):
r = api.requests.get("/")
Expand Down