mirror of
https://github.com/planetmint/planetmint.git
synced 2025-11-24 14:35:45 +00:00
updated CI and Makefile
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
This commit is contained in:
parent
bd665e87c0
commit
4bfbcbc298
24
.github/workflows/CI.yml
vendored
24
.github/workflows/CI.yml
vendored
@ -44,14 +44,17 @@ jobs:
|
||||
- name: Install pip-audit
|
||||
run: pip install --upgrade pip pip-audit
|
||||
|
||||
- name: Setup poetry
|
||||
uses: Gr1N/setup-poetry@v7
|
||||
|
||||
- name: Install dependencies
|
||||
run: pip install .
|
||||
run: poetry install
|
||||
|
||||
- name: Create requirements.txt
|
||||
run: pip freeze > requirements.txt
|
||||
run: poetry run pip freeze > requirements.txt
|
||||
|
||||
- name: Audit dependencies
|
||||
run: pip-audit --ignore-vuln PYSEC-2022-42969 --ignore-vuln PYSEC-2022-203 --ignore-vuln GHSA-r9hx-vwmv-q579
|
||||
run: poetry run pip-audit --ignore-vuln PYSEC-2022-42969 --ignore-vuln PYSEC-2022-203 --ignore-vuln GHSA-r9hx-vwmv-q579
|
||||
|
||||
test:
|
||||
needs: lint
|
||||
@ -81,9 +84,11 @@ jobs:
|
||||
- name: Get Tendermint
|
||||
run: wget https://github.com/tendermint/tendermint/releases/download/v0.34.15/tendermint_0.34.15_linux_amd64.tar.gz && tar zxf tendermint_0.34.15_linux_amd64.tar.gz
|
||||
|
||||
- name: Install Planetmint
|
||||
run: pip install -e '.[dev]'
|
||||
- name: Setup poetry
|
||||
uses: Gr1N/setup-poetry@v7
|
||||
|
||||
- name: Install Planetmint
|
||||
run: poetry install --with dev
|
||||
|
||||
- name: Execute Tests
|
||||
run: make test
|
||||
@ -106,15 +111,12 @@ jobs:
|
||||
uses: Gr1N/setup-poetry@v7
|
||||
|
||||
- name: Install dependencies
|
||||
run: pip install -e '.[dev]' && pip install wheel && python setup.py bdist_wheel sdist
|
||||
run: poetry install --with dev
|
||||
|
||||
- name: Upload to PyPI
|
||||
run: |
|
||||
twine check dist/*
|
||||
twine upload --skip-existing dist/*
|
||||
env:
|
||||
TWINE_USERNAME: __token__
|
||||
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
|
||||
poetry build
|
||||
poetry publish -u __token__ -p ${{ secrets.PYPI_TOKEN }}
|
||||
|
||||
- name: Upload to GitHub
|
||||
uses: softprops/action-gh-release@v1
|
||||
|
||||
4
Makefile
4
Makefile
@ -83,9 +83,9 @@ test-unit: check-deps ## Run all tests once or specify a file/test with TEST=tes
|
||||
@$(DC) up -d tarantool
|
||||
#wget https://github.com/tendermint/tendermint/releases/download/v0.34.15/tendermint_0.34.15_linux_amd64.tar.gz
|
||||
#tar zxf tendermint_0.34.15_linux_amd64.tar.gz
|
||||
pytest -m "not abci"
|
||||
poetry run pytest -m "not abci"
|
||||
rm -rf ~/.tendermint && ./tendermint init && ./tendermint node --consensus.create_empty_blocks=false --rpc.laddr=tcp://0.0.0.0:26657 --proxy_app=tcp://localhost:26658&
|
||||
pytest -m abci
|
||||
poetry run pytest -m abci
|
||||
@$(DC) down
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user