From b1259e4d575a4adcd087c24fe809eb81de50d418 Mon Sep 17 00:00:00 2001 From: Cam Sima Date: Tue, 27 Aug 2024 14:16:10 -0400 Subject: [PATCH] remove python 3.9 --- .github/workflows/python-package.yml | 31 ++++++++++++++-------------- test/test_html.py | 2 +- 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 7fde63a..7d2cca3 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -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 diff --git a/test/test_html.py b/test/test_html.py index a176f13..104dd42 100644 --- a/test/test_html.py +++ b/test/test_html.py @@ -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/")