Skip to content

Commit 0fb2c34

Browse files
committed
remove hatch from CI
1 parent 83739cf commit 0fb2c34

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
matrix:
1010
os: [ubuntu-latest, macos-latest, windows-latest]
11-
python-version: ["3.7", "3.8", "3.9", "3.10"]
11+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
1212
defaults:
1313
run:
1414
shell: bash
@@ -19,14 +19,26 @@ jobs:
1919
with:
2020
python-version: ${{ matrix.python-version }}
2121
architecture: x64
22-
- name: Install Hatch
23-
run: pip install --upgrade hatch
22+
- name: Install and configure Poetry
23+
uses: snok/[email protected]
24+
with:
25+
version: 1.2.2
26+
virtualenvs-in-project: true
27+
- name: Install dependencies
28+
run: poetry install --extras "dev"
29+
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
2430
- name: Format check with black
25-
run: hatch run lint:check
31+
run: |
32+
source $VENV
33+
make format-check
2634
# - name: Typecheck with mypy
27-
# run: hatch run lint:typing
35+
# run: |
36+
# source $VENV
37+
# make typecheck
2838
- name: Test with pytest
29-
run: hatch run pytest tests -v --cov=./src/textual --cov-report=xml:./coverage.xml --cov-report term-missing
39+
run: |
40+
source $VENV
41+
pytest tests -v --cov=./src/textual --cov-report=xml:./coverage.xml --cov-report term-missing
3042
- name: Upload snapshot report
3143
if: always()
3244
uses: actions/upload-artifact@v3

0 commit comments

Comments
 (0)