mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 09:37:25 +00:00
This was building the pybricks package instead of the pybricks_jedi package because it was using the wrong directory.
37 lines
924 B
YAML
37 lines
924 B
YAML
name: pybricks_jedi
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
test:
|
|
if: github.ref_type != 'tag'
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-python@v2
|
|
with:
|
|
python-version: "3.10"
|
|
- run: pipx install poetry
|
|
- run: poetry install
|
|
working-directory: ./jedi
|
|
- run: poetry run pytest -vv
|
|
working-directory: ./jedi
|
|
|
|
publish:
|
|
if: github.ref_type == 'tag' && startsWith(github.ref_name, 'pybricks_jedi/')
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-python@v2
|
|
with:
|
|
python-version: "3.10"
|
|
- run: pipx install poetry
|
|
- run: poetry install
|
|
working-directory: ./jedi
|
|
- run: poetry build
|
|
working-directory: ./jedi
|
|
- run: poetry publish
|
|
working-directory: ./jedi
|
|
env:
|
|
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_PYBRICKS_JEDI_TOKEN }}
|