Skip to content

Commit

Permalink
remove python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
CameronSima committed Aug 27, 2024
1 parent 1ebbb03 commit b1259e4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
31 changes: 15 additions & 16 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,29 @@ name: Python package

on:
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
branches: ["main"]

jobs:
build:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: ["3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test with unittest
run: |
python -m unittest
- name: Test with unittest
run: |
python -m unittest
2 changes: 1 addition & 1 deletion test/test_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async def asyncSetUp(self):
"""Bring server up."""
self.proc = Process(target=run_server, args=(), daemon=False)
self.proc.start()
await asyncio.sleep(0.2) # time for the server to start
await asyncio.sleep(0.3) # time for the server to start

async def test_render_jinja(self):
response = requests.get("http://localhost:5050/")
Expand Down

0 comments on commit b1259e4

Please sign in to comment.