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

Commit

Permalink
add check-pypi job to build workflow (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgrillo-grapl authored Jul 28, 2020
1 parent 8b65d77 commit 1916226
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/grapl-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,58 @@ jobs:
docker build -f .github/etc/cargo-audit/Dockerfile -t grapl/grapl-cargo-audit:latest src/rust
docker run -t grapl/grapl-cargo-audit:latest cargo audit
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: Check whether grapl_graph_descriptions version has been bumped
run: |
. venv/bin/activate
if [[ "$CHANNEL" == "latest" ]]; then
python etc/build_scripts/check_pypi_version.py \
grapl_graph_descriptions \
$(cat src/rust/graph-descriptions/VERSION)
else
python etc/build_scripts/check_pypi_version.py \
grapl_graph_descriptions \
$(cat src/rust/graph-descriptions/VERSION) \
true
fi
deactivate
- name: Check whether grapl_analyzerlib version has been bumped
run: |
. venv/bin/activate
if [[ "$CHANNEL" == "latest" ]]; then
python etc/build_scripts/check_pypi_version.py \
grapl_analyzerlib \
$(cat src/python/grapl_analyzerlib/VERSION)
else
python etc/build_scripts/check_pypi_version.py \
grapl_analyzerlib \
$(cat src/python/grapl_analyzerlib/VERSION) \
true
fi
deactivate
rust-unit-tests:
runs-on: ubuntu-latest

Expand Down

0 comments on commit 1916226

Please sign in to comment.