support bayer_rggb16 (#1) #5
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: Publish to PyPI | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Install Poetry | |
run: pip install poetry | |
- name: Configure Poetry | |
run: poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }} | |
- name: Navigate to robologs-ros-utils/python | |
run: cd python | |
- name: Install project dependencies | |
run: poetry install | |
working-directory: python | |
- name: Run tests | |
run: poetry run coverage run -m --source=robologs_ros_utils pytest tests | |
working-directory: python | |
- name: Build package | |
run: poetry build | |
working-directory: python | |
- name: Publish package to TestPyPI | |
run: poetry publish | |
working-directory: python |