Skip to content

Add site owner

Add site owner #406

Workflow file for this run

name: CI Pipeline for SDK - Python
on:
push:
pull_request:
types: [opened, reopened]
jobs:
lint_and_test:
name: Lint the code and run the tests
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Install poetry
run: pipx install poetry==1.3.2
- name: Install python
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: poetry
- name: Install python dependencies
run: poetry install
- name: Lint
run: make lint
- name: Run the tests
run: poetry run pytest --cov=pvsite_datamodel --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
publish:
needs: ["lint_and_test"]
if: github.ref_name == 'main'
uses: openclimatefix/.github/.github/workflows/python-release.yml@main
secrets:
token: ${{ secrets.PYPI_API_TOKEN }}
PAT_TOKEN: ${{ secrets.PAT_TOKEN }}