Skip to content

Commit

Permalink
Merge pull request #36 from Textualize/add-serve
Browse files Browse the repository at this point in the history
Add serve
  • Loading branch information
willmcgugan authored Aug 30, 2024
2 parents 14f9fb2 + 9b880fa commit dadb35e
Show file tree
Hide file tree
Showing 6 changed files with 573 additions and 378 deletions.
32 changes: 21 additions & 11 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,38 +3,48 @@ name: Test textual-dev
on:
pull_request:
paths:
- '.github/workflows/pythonpackage.yml'
- '**.py'
- '**.pyi'
- '**.css'
- '**.lock'
- 'Makefile'
- ".github/workflows/pythonpackage.yml"
- "**.py"
- "**.pyi"
- "**.css"
- "**.lock"
- "Makefile"
push:
branches:
- 'main'
- "main"

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
# Python 3.9 is on macos-13 but not macos-latest (macos-14-arm64)
# https://github.com/actions/setup-python/issues/696#issuecomment-1637587760
exclude:
- { python-version: "3.8", os: "macos-latest" }
- { python-version: "3.9", os: "macos-latest" }
- { python-version: "3.11", os: "macos-latest" }
include:
- { python-version: "3.8", os: "macos-13" }
- { python-version: "3.9", os: "macos-13" }
- { python-version: "3.11", os: "macos-13" }
defaults:
run:
shell: bash
steps:
- uses: actions/[email protected]
- name: Install and configure Poetry # This could be cached, too...
- name: Install and configure Poetry # This could be cached, too...
uses: snok/[email protected]
with:
version: 1.4.2
virtualenvs-in-project: true
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4.6.0
uses: actions/setup-python@v5.2.0
with:
python-version: ${{ matrix.python-version }}
architecture: x64

- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
__pycache__/
*.py[cod]
*$py.class

.vscode/
# C extensions
*.so

Expand Down
Loading

0 comments on commit dadb35e

Please sign in to comment.