Skip to content

Commit

Permalink
v0.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
cobycloud committed Nov 1, 2024
1 parent da526e8 commit f9762f2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
pkg-dir: [pkg/crouton, pkg/crouton-client] # Specify the directories for each package

steps:
- name: Checkout the repository
uses: actions/checkout@v4
Expand All @@ -27,34 +31,34 @@ jobs:
- name: Install dependencies
run: |
cd pkg
cd ${{ matrix.pkg-dir }}
poetry install --no-cache -vv
- name: Lint with flake8
run: |
cd pkg
cd ${{ matrix.pkg-dir }}
poetry run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
poetry run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Build the package
run: |
cd pkg
cd ${{ matrix.pkg-dir }}
poetry build
- name: Install built package
run: |
LATEST_WHL=$(ls pkg/dist/*.whl | sort -V | tail -n 1)
LATEST_WHL=$(ls ${{ matrix.pkg-dir }}/dist/*.whl | sort -V | tail -n 1)
python -m pip install "$LATEST_WHL" --no-cache-dir
- name: Get pip freeze
run: |
pip freeze
- name: Run tests
run: |
cd pkg
# poetry run pytest -v tests --junitxml=results.xml
continue-on-error: True
cd ${{ matrix.pkg-dir }}
# poetry run pytest -v tests --junitxml=results.xml
continue-on-error: true

- name: Publish to PyPI
if: github.ref == 'refs/heads/master'
Expand All @@ -65,4 +69,4 @@ jobs:
with:
user: ${{ secrets.POETRY_PYPI_USERNAME }}
password: ${{ secrets.POETRY_PYPI_API_TOKEN }}
packages_dir: pkg/dist
packages_dir: ${{ matrix.pkg-dir }}/dist
2 changes: 1 addition & 1 deletion pkg/crouton-client/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "crouton-client"
version = "0.0.3"
version = "0.0.4"
description = "A client for Swarmauri's crouton."
authors = ["Jacob Stewart <[email protected]>"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion pkg/crouton/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "crouton"
version = "0.0.3"
version = "0.0.4"
description = "A repository to enable API CRUD Routing"
authors = ["Jacob Stewart <[email protected]>"]
license = "Apache-2.0"
Expand Down

0 comments on commit f9762f2

Please sign in to comment.