chore(deps): update release-drafter/release-drafter action to v6 #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: On Push | |
on: | |
pull_request: # any pull request | |
push: | |
branches: | |
- master | |
defaults: | |
run: | |
shell: bash | |
env: | |
NODE_VERSION: '20' | |
PYTEST_ADDOPTS: --color=yes | |
jobs: | |
build-pypi: | |
name: Build PyPi 📦 | |
needs: | |
- lint-python | |
- test-python | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo (complete) | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: ITProKyle/action-setup-python@v0.7.0 | |
- name: Install Poetry Plugins | |
run: poetry self add "poetry-dynamic-versioning[plugin]" | |
- name: Run Build | |
run: make build | |
- name: Upload Distribution Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: pypi-dist | |
path: dist | |
lint-python: | |
name: Lint Python | |
strategy: | |
matrix: | |
python-version: [3.11, 3.12] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Install Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- uses: ITProKyle/action-setup-python@v0.7.0 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Node Dependencies | |
run: npm ci | |
- name: Run Linters | |
run: make lint | |
spellcheck: | |
# There is an official action published by cSpell. | |
# v1.1.1 was tested but did not function as desired so we are using the CLI. | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- run: npm ci | |
- run: make spellcheck | |
test-python: | |
name: Python tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.11, 3.12] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ITProKyle/action-setup-python@v0.7.0 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Run tests | |
run: make test |