Skip to content

Pin pipenv to an older version #266

Pin pipenv to an older version

Pin pipenv to an older version #266

Workflow file for this run

name: CI
on:
push:
branches: [main]
tags: ["releases/**"]
pull_request:
branches: ["*"]
jobs:
python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.7
cache: pipenv
- run: pip install pipenv
- run: pipenv install --dev --deploy
- run: pipenv run black --check --diff --color --exclude '.*_pb2.py' .
- run: pipenv run pyright foxglove_data_platform
- run: pipenv run python -m flake8 foxglove_data_platform
- run: pipenv run python -m pytest
- run: pipenv run python -m build
- name: Publish to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.TESTPYPI_API_TOKEN }}
packages_dir: dist
repository_url: https://test.pypi.org/legacy/
skip_existing: true
- name: Publish to PyPI
if: ${{ startsWith(github.ref, 'refs/tags/releases/v') }}
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
packages_dir: dist