forked from darosior/python-bip32
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove setup.py, use poetry github workflows.
- Loading branch information
1 parent
fa1f8fc
commit 795c4ab
Showing
4 changed files
with
29 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,68 +1,38 @@ | ||
name: python-slip10 | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
tests: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
python-version: ['3.9', '3.10'] | ||
os: | ||
- ubuntu-latest | ||
- macOS-latest | ||
- windows-latest | ||
|
||
runs-on: ${{ matrix.os }} | ||
os: [ ubuntu-latest ] | ||
python-version: ['3.8', '3.9', '3.10'] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Installation (deps and package) | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pytest | ||
pip install -r requirements.txt -r tests/requirements.txt | ||
python setup.py install | ||
- name: Test with pytest | ||
run: | | ||
pytest -vvv | ||
- 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 | ||
- name: Run tests for Python-${{ matrix.python-version }} with ${{ matrix.os }} | ||
run: poetry run pytest | ||
|
||
linter: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
- name: Run `black` on the source code | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install black | ||
python -m black --check slip10 tests | ||
coincurve_versions: | ||
strategy: | ||
matrix: | ||
coincurve-version: [15, 16, 17] | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.10' | ||
- name: Testing with Coincurve ${{ matrix.coincurve-version }} | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pytest | ||
pip install -r requirements.txt -r tests/requirements.txt | ||
pip install -I coincurve==${{ matrix.coincurve-version }} | ||
python setup.py install | ||
- 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: 3.9 | ||
- name: Install dependencies | ||
run: poetry install --only=dev | ||
- name: Run style check | ||
run: poetry run make style_check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.