Skip to content

Commit

Permalink
switch to poetry and improve ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
lgingerich committed Aug 31, 2023
1 parent 50ebb6d commit bc0e451
Show file tree
Hide file tree
Showing 6 changed files with 612 additions and 60 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Python Package CI

on:
push:
branches: [ main ]
branches: [ master ]
pull_request:
branches: [ main ]
branches: [ master ]

jobs:
build:
Expand All @@ -22,12 +22,18 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies

- name: Install Poetry and dependencies
run: |
python -m pip install --upgrade pip
pip install .
pip install poetry
poetry install
- name: Lint with ruff
run: poetry run ruff .

- name: Format with black
run: poetry run black --check .

- name: Test with pytest (if you use pytest)
run: |
pip install pytest
pytest
- name: Test with pytest
run: poetry run pytest
Loading

0 comments on commit bc0e451

Please sign in to comment.