diff --git a/.github/workflows/dangerjs.yml b/.github/workflows/dangerjs.yml index 9b174b3..d035bab 100644 --- a/.github/workflows/dangerjs.yml +++ b/.github/workflows/dangerjs.yml @@ -1,17 +1,19 @@ --- -name: DangerJS Pull Request linter +name: 🎓 DangerJS Pull Request linter on: - pull_request_target: - types: [opened, edited, reopened, synchronize] + pull_request_target: {types: [opened, edited, reopened, synchronize]} -permissions: - pull-requests: write - contents: write +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: pull-request-style-linter: runs-on: ubuntu-latest + permissions: + pull-requests: write + contents: write steps: - name: Check out PR head uses: actions/checkout@v4 diff --git a/.github/workflows/plugin-tests.yml b/.github/workflows/plugin-tests.yml index 4a5955b..3f6c170 100644 --- a/.github/workflows/plugin-tests.yml +++ b/.github/workflows/plugin-tests.yml @@ -5,15 +5,43 @@ on: pull_request: push: {branches: master} +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: - plugin-tests: + linux-tests: runs-on: ubuntu-latest - permissions: - contents: read strategy: matrix: python-version: ['3.9', '3.10', '3.11', '3.12'] + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + cache: pip + + - name: Install dependencies (Linux) + run: | + python -m venv venv + source venv/bin/activate + pip install --require-virtualenv --upgrade pip + pip install --require-virtualenv '.[test]' + + - name: Run pytest, compare output with stored snapshots (Linux) + run: | + source venv/bin/activate + pytest -s + + macos-tests: + runs-on: macos-latest + strategy: + matrix: + python-version: ['3.9', '3.10', '3.11', '3.12'] steps: - name: Checkout repository uses: actions/checkout@v4 @@ -24,14 +52,41 @@ jobs: python-version: ${{ matrix.python-version }} cache: pip - - name: Install dependencies + - name: Install dependencies (macOS) run: | python -m venv venv source venv/bin/activate pip install --require-virtualenv --upgrade pip pip install --require-virtualenv '.[test]' - - name: Run pytest, compare output with stored snapshots - run: |- + - name: Run pytest, compare output with stored snapshots (macOS) + run: | source venv/bin/activate pytest -s + + windows-tests: + runs-on: windows-latest + strategy: + matrix: + python-version: ['3.9', '3.10', '3.11', '3.12'] + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + cache: pip + + - name: Install dependencies (Windows) + run: | + python -m venv venv + venv\Scripts\python.exe -m pip install --require-virtualenv --upgrade pip + venv\Scripts\python.exe -m pip install --require-virtualenv .[test] + shell: cmd + + - name: Run pytest, compare output with stored snapshots (Windows) + run: | + venv\Scripts\python.exe -m pytest -s + shell: cmd diff --git a/README.md b/README.md index 7d17167..8581277 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Espressif logo -# Commitizen plugin Espressif +# Commitizen plugin czEspressif This is a plugin for Commitizen that makes it easy to create and maintain a well-organized and good-looking `CHANGELOG.md`. It also takes care of version bumping and helps you write commit messages that follow Espressif standards. @@ -16,15 +16,16 @@ All of this with minimal config and setup, so your `pyproject.toml` file stays c GitHub Release PyPI - Python Version Static Badge + Project License
GitHub contributors GitHub commit activity GitHub last commit PyPI - Downloads - Project License
- GitHub workflow SyncJira - itHub workflow CodeQL + GitHub workflow Tests Pytest + GitHub workflow SyncJira + GitHub workflow CodeQL

@@ -36,7 +37,7 @@ All of this with minimal config and setup, so your `pyproject.toml` file stays c
-- [Commitizen plugin Espressif](#commitizen-plugin-espressif) +- [Commitizen plugin czEspressif](#commitizen-plugin-czespressif) - [Features](#features) - [Compatibility](#compatibility) - [Install](#install)