Skip to content

Commit

Permalink
fixup! build: Switch to poetry. Bump version.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewkozlik committed Apr 30, 2024
1 parent 503d428 commit 01ac511
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: psf/black@stable
- uses: isort/[email protected]
- name: Setup python
uses: actions/setup-python@v2
- name: Install Flake8
run: pip install flake8
- name: Run Flake8
run: flake8 shamir_mnemonic/
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- name: Setup python for ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: poetry install --only=dev
- name: Run style check
run: poetry run make style_check
10 changes: 6 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ jobs:
os: [ ubuntu-latest ]
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- name: Setup python for ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install -e ".[tests]"
run: poetry install
- name: Run tests for Python-${{ matrix.python-version }} with ${{ matrix.os }}
run: pytest
run: poetry run pytest

0 comments on commit 01ac511

Please sign in to comment.