Merge pull request #39 from Textualize/colors-and-borders-demo-updates #100
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | name: Test textual-dev | |
| on: | |
| pull_request: | |
| paths: | |
| - ".github/workflows/pythonpackage.yml" | |
| - "**.py" | |
| - "**.pyi" | |
| - "**.css" | |
| - "**.lock" | |
| - "Makefile" | |
| push: | |
| branches: | |
| - "main" | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| 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... | |
| uses: snok/[email protected] | |
| with: | |
| version: 1.4.2 | |
| virtualenvs-in-project: true | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/[email protected] | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Load cached venv | |
| id: cached-poetry-dependencies | |
| uses: actions/cache@v3 | |
| with: | |
| path: .venv | |
| key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }} | |
| - name: Install dependencies | |
| run: poetry install | |
| if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' | |
| - name: Run mypy | |
| run: | | |
| source $VENV | |
| mypy . | |
| - name: Test with pytest | |
| run: | | |
| source $VENV | |
| pytest tests -v |