Skip to content

Commit

Permalink
hatch in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
manzt committed Mar 15, 2023
1 parent 3eb6352 commit b41a285
Showing 1 changed file with 7 additions and 18 deletions.
25 changes: 7 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,9 @@ jobs:
with:
python-version: "3.x"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[dev]
- name: Linting with Ruff
run: ruff .

- name: Formatting with Black
run: black --check .
- run: |
pipx install hatch
hatch run lint
Test:
runs-on: ubuntu-latest
Expand All @@ -45,14 +38,10 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[dev]
- name: Test with pytest
run: |
pytest
- run: |
pipx install hatch
hatch shell
hatch run test
Release:
needs: [Lint, Test]
Expand Down

0 comments on commit b41a285

Please sign in to comment.