mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
22
.github/workflows/black_format.yml
vendored
Normal file
22
.github/workflows/black_format.yml
vendored
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
|
||||||
|
name: Black format check
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- '.github/workflows/black_format.yml'
|
||||||
|
- '**.py'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
black-format-check:
|
||||||
|
runs-on: "ubuntu-latest"
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3.5.2
|
||||||
|
- name: Set up Python 3.11
|
||||||
|
uses: actions/setup-python@v4.6.0
|
||||||
|
with:
|
||||||
|
python-version: 3.11
|
||||||
|
- name: Install black
|
||||||
|
run: python -m pip install black
|
||||||
|
- name: Run black
|
||||||
|
run: black --check src
|
||||||
5
.github/workflows/comment.yml
vendored
5
.github/workflows/comment.yml
vendored
@@ -1,7 +1,8 @@
|
|||||||
name: issues
|
name: Closed issue comment
|
||||||
on:
|
on:
|
||||||
issues:
|
issues:
|
||||||
types: [closed]
|
types: [closed]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
add-comment:
|
add-comment:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -14,5 +15,5 @@ jobs:
|
|||||||
issue-number: ${{ github.event.issue.number }}
|
issue-number: ${{ github.event.issue.number }}
|
||||||
body: |
|
body: |
|
||||||
Don't forget to [star](https://github.com/Textualize/textual) the repository!
|
Don't forget to [star](https://github.com/Textualize/textual) the repository!
|
||||||
|
|
||||||
Follow [@textualizeio](https://twitter.com/textualizeio) for Textual updates.
|
Follow [@textualizeio](https://twitter.com/textualizeio) for Textual updates.
|
||||||
|
|||||||
3
.github/workflows/new_issue.yml
vendored
3
.github/workflows/new_issue.yml
vendored
@@ -1,7 +1,8 @@
|
|||||||
name: issues
|
name: FAQ issue comment
|
||||||
on:
|
on:
|
||||||
issues:
|
issues:
|
||||||
types: [opened]
|
types: [opened]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
add-comment:
|
add-comment:
|
||||||
if: ${{ !contains( 'willmcgugan,darrenburns,davep,rodrigogiraoserrao', github.actor ) }}
|
if: ${{ !contains( 'willmcgugan,darrenburns,davep,rodrigogiraoserrao', github.actor ) }}
|
||||||
|
|||||||
26
.github/workflows/pythonpackage.yml
vendored
26
.github/workflows/pythonpackage.yml
vendored
@@ -3,6 +3,7 @@ name: Test Textual module
|
|||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
|
- '.github/workflows/pythonpackage.yml'
|
||||||
- '**.py'
|
- '**.py'
|
||||||
- '**.pyi'
|
- '**.pyi'
|
||||||
- '**.css'
|
- '**.css'
|
||||||
@@ -21,27 +22,28 @@ jobs:
|
|||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v3.5.2
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Install and configure Poetry # This could be cached, too...
|
||||||
uses: actions/setup-python@v2
|
|
||||||
with:
|
|
||||||
python-version: ${{ matrix.python-version }}
|
|
||||||
architecture: x64
|
|
||||||
- name: Install and configure Poetry
|
|
||||||
uses: snok/install-poetry@v1.3.3
|
uses: snok/install-poetry@v1.3.3
|
||||||
with:
|
with:
|
||||||
version: 1.4.2
|
version: 1.4.2
|
||||||
virtualenvs-in-project: true
|
virtualenvs-in-project: true
|
||||||
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
|
uses: actions/setup-python@v4.6.0
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python-version }}
|
||||||
|
architecture: x64
|
||||||
|
- 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
|
- name: Install dependencies
|
||||||
run: poetry install --extras "dev"
|
run: poetry install --extras "dev"
|
||||||
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
|
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
|
||||||
- name: Format check with black
|
|
||||||
run: |
|
|
||||||
source $VENV
|
|
||||||
make format-check
|
|
||||||
# - name: Typecheck with mypy
|
# - name: Typecheck with mypy
|
||||||
# run: |
|
# run: |
|
||||||
# source $VENV
|
|
||||||
# make typecheck
|
# make typecheck
|
||||||
- name: Test with pytest
|
- name: Test with pytest
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user