Skip to content

[chore] FixClient -> FixInventoryClient (#78) #5

[chore] FixClient -> FixInventoryClient (#78)

[chore] FixClient -> FixInventoryClient (#78) #5

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_FIXINVENTORYCLIENT }}
packages_dir: ./dist/