Skip to content

Commit

Permalink
Fix ci (#9)
Browse files Browse the repository at this point in the history
* fix ci

* black

* localize
  • Loading branch information
almarklein committed Oct 7, 2023
1 parent 4a57361 commit 8c0aa1a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ jobs:
matrix:
include:
- name: Lint
os: ubuntu-18.04
pyversion: '3.7'
nodeversion: '12'
os: ubuntu-latest
pyversion: '3.11'
nodeversion: '18'
lint: 1
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.pyversion }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.pyversion }}
- name: Set up Node ${{ matrix.nodeversion }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.nodeversion }}
- name: Install dependencies
Expand All @@ -38,8 +38,8 @@ jobs:
- name: Lint Python
if: matrix.lint == 1
run: |
black --check .
flake8 . --max-line-length=89
black --check ./*.py
flake8 ./*.py --max-line-length=89
- name: Lint JS
if: matrix.lint == 1
run: |
Expand Down
3 changes: 1 addition & 2 deletions serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def collect_assets():


def send_stats(request, status_code=None, rtime=None, is_page=None):
""" Send request stats over UPD to a stats server. """
"""Send request stats over UPD to a stats server."""
mypaas_service = os.getenv("MYPAAS_SERVICE", "")
if not mypaas_service:
return
Expand All @@ -159,7 +159,6 @@ def send_stats(request, status_code=None, rtime=None, is_page=None):

@asgineer.to_asgi
async def main_handler(request):

path = request.path.lstrip("/")

response = await asset_handler(request, path or "index.html")
Expand Down

0 comments on commit 8c0aa1a

Please sign in to comment.