[fix] simplify json handling (#66) #119
Workflow file for this run
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
name: Test and publish (resotoclient) | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'resotoclient/**' | |
- '.github/**' | |
tags: | |
- "*.*.*" | |
pull_request: | |
paths: | |
- 'resotoclient/**' | |
- '.github/**' | |
jobs: | |
resotoclient-test-and-build: | |
name: "Test and build (resotoclient)" | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./ | |
services: | |
arangodb: | |
image: arangodb:3.10.5 | |
env: | |
ARANGO_NO_AUTH: 1 | |
ports: | |
- 8529:8529 | |
resotocore: | |
image: somecr.io/someengineering/resotocore:3.3.3 | |
env: | |
RESOTOCORE_ANALYTICS_OPT_OUT: true | |
RESOTOCORE_GRAPHDB_SERVER: http://arangodb:8529 | |
RESOTOCORE_OVERRIDE: "resotocore.api.web_hosts=0.0.0.0" | |
ports: | |
- 8900:8900 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.9' | |
architecture: 'x64' | |
- name: Restore dependency cache | |
uses: actions/cache@v2 | |
with: | |
path: ~/.cache/pypoetry | |
key: $\{\{runner.os}}-poetry-$\{\{hashFiles('poetry.lock')}} | |
restore-keys: | | |
$\{\{ runner.os }}-poetry- | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip poetry nox nox-poetry | |
poetry install | |
- name: Dump docker logs | |
uses: jwalton/gh-docker-logs@v2 | |
- name: Run nox | |
env: | |
RESOTOCORE_ANALYTICS_OPT_OUT: true | |
run: nox | |
- name: Build a binary wheel and a source tarball | |
run: >- | |
poetry build | |
- name: Publish distribution to PyPI | |
if: github.ref_type == 'tag' | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_RESOTOCLIENT }} | |
packages_dir: ./dist/ |