Skip to content

fix: determine version for user-agent only once #110

fix: determine version for user-agent only once

fix: determine version for user-agent only once #110

Workflow file for this run

---
name: CI
# yamllint disable-line rule:truthy
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Install dependencies
run: |
poetry install
- name: Lint
run: |
SKIP=no-commit-to-branch poetry run pre-commit run --all-files
- name: Test coverage
run: |
poetry run pytest
- uses: codecov/codecov-action@v3.1.1
with:
token: ${{secrets.CODECOV}}
file: ./coverage.xml
flags: unittests
name: codecov-umbrella
hacs:
name: HACS Action
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v4"
- name: HACS Action
uses: "hacs/action@main"
with:
category: "integration"
ignore: "brands"
hass_validate:
name: Hassfest
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v4"
- name: Hassfest
uses: home-assistant/actions/hassfest@master
noop-release:
name: Semantic Release Noop
runs-on: ubuntu-latest
needs:
- build
- security

Check failure on line 64 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 64, Col: 9): Job 'noop-release' depends on unknown job 'security'. .github/workflows/ci.yml (Line: 82, Col: 9): Job 'release' depends on unknown job 'security'.
if: github.ref != 'refs/heads/main'
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Python Semantic Release Noop
uses: relekang/python-semantic-release@v7.33.2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
repository_username: __token__
repository_password: ${{ secrets.PYPI_TOKEN }}
additional_options: "--noop"
release:
name: Semantic Release
runs-on: ubuntu-latest
needs:
- build
- security
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Python Semantic Release
uses: relekang/python-semantic-release@v7.33.2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
repository_username: __token__
repository_password: ${{ secrets.PYPI_TOKEN }}