Skip to content
This repository has been archived by the owner on Dec 26, 2022. It is now read-only.

Commit

Permalink
Remove check-pypi check, since we do pypi updates manually now (#686)
Browse files Browse the repository at this point in the history
  • Loading branch information
wimax-grapl authored Mar 17, 2021
1 parent 52cfb6e commit 2e1965f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 133 deletions.
67 changes: 1 addition & 66 deletions .github/workflows/grapl-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,69 +79,4 @@ jobs:
~/.cache/pants/named_caches
~/.cache/pants/lmdb_store
- name: Lint
run: make lint-python

check-pypi:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: [3.7]

steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install pypi-simple
run: |
python3 -mvenv venv && . venv/bin/activate
pip install pypi-simple
deactivate
- name: Export CHECK_PYPI_VERSION_ARGS as "check against test.pypi"
# passing 'true' to check_pypi means "check test.pypi.org" vs prod
run: |
echo "CHECK_PYPI_VERSION_ARGS=true" >> $GITHUB_ENV
# TODO: Reactivate this once the new graplinc-grapl-api package
# has been pushed to test PyPi
#
# - name: Check whether graplinc-grapl-api version has been bumped
# run: |
# . venv/bin/activate
# python etc/build_scripts/check_pypi_version.py \
# graplinc-grapl-api \
# $(cat src/python/graplinc-grapl-api/VERSION) \
# $CHECK_PYPI_VERSION_ARGS
# deactivate

- name: Check whether grapl_analyzerlib version has been bumped
run: |
. venv/bin/activate
python etc/build_scripts/check_pypi_version.py \
grapl_analyzerlib \
$(cat src/python/grapl_analyzerlib/VERSION) \
$CHECK_PYPI_VERSION_ARGS
deactivate
- name: Check whether grapl-common version has been bumped
run: |
. venv/bin/activate
python etc/build_scripts/check_pypi_version.py \
grapl-common \
$(cat src/python/grapl-common/VERSION) \
$CHECK_PYPI_VERSION_ARGS
deactivate
- name: Check whether grapl-tests-common version has been bumped
run: |
. venv/bin/activate
python etc/build_scripts/check_pypi_version.py \
grapl-tests-common \
$(cat src/python/grapl-tests-common/VERSION) \
$CHECK_PYPI_VERSION_ARGS
deactivate
run: make lint-python
68 changes: 1 addition & 67 deletions .github/workflows/grapl-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,75 +80,9 @@ jobs:
run: |
make test-integration
check-pypi:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: [3.7]

steps:

- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install pypi-simple
run: |
python3 -mvenv venv && . venv/bin/activate
pip install pypi-simple
deactivate
- name: Export CHECK_PYPI_VERSION_ARGS as "check against prod pypi"
# passing 'false' to check_pypi means "check prod pypi.org" not test
run: |
echo "CHECK_PYPI_VERSION_ARGS=false" >> $GITHUB_ENV
# TODO: Reactivate this once the new graplinc-grapl-api package
# has been pushed to PyPi
#
# - name: Check whether graplinc-grapl-api version has been bumped
# run: |
# . venv/bin/activate
# python etc/build_scripts/check_pypi_version.py \
# graplinc-grapl-api \
# $(cat src/python/graplinc-grapl-api/VERSION) \
# $CHECK_PYPI_VERSION_ARGS
# deactivate
- name: Check whether grapl_analyzerlib version has been bumped
run: |
. venv/bin/activate
python etc/build_scripts/check_pypi_version.py \
grapl_analyzerlib \
$(cat src/python/grapl_analyzerlib/VERSION) \
$CHECK_PYPI_VERSION_ARGS
deactivate
- name: Check whether grapl-common version has been bumped
run: |
. venv/bin/activate
python etc/build_scripts/check_pypi_version.py \
grapl-common \
$(cat src/python/grapl-common/VERSION) \
$CHECK_PYPI_VERSION_ARGS
deactivate
- name: Check whether grapl-tests-common version has been bumped
run: |
. venv/bin/activate
python etc/build_scripts/check_pypi_version.py \
grapl-tests-common \
$(cat src/python/grapl-tests-common/VERSION) \
$CHECK_PYPI_VERSION_ARGS
deactivate
release-services:
runs-on: ubuntu-latest
needs: [rust-unit-tests, python-unit-tests, js-unit-tests, integration-tests, check-pypi]
needs: [rust-unit-tests, python-unit-tests, js-unit-tests, integration-tests]

steps:
- uses: actions/checkout@v2
Expand Down

0 comments on commit 2e1965f

Please sign in to comment.