fix: Non-incremented version throws a warning but not an error #3
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: test-format-render | |
on: | |
push: | |
branches: [dev] | |
pull_request: | |
branches: [dev] | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.8", "3.12"] | |
poetry-version: [latest] | |
os: [ubuntu-latest] | |
defaults: | |
run: | |
shell: bash | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install and configure Poetry | |
uses: snok/install-poetry@v1 | |
- name: Install project | |
run: | | |
poetry install | |
- name: Run tests with pytest | |
run: | | |
poetry run pytest tests | |
outputs: | |
matrix: ${{ toJson(matrix) }} | |
render: | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.12' | |
- name: Install and configure Poetry | |
uses: snok/install-poetry@v1 | |
- name: Format code with black | |
run: | | |
poetry run black . | |
- name: Build README.md | |
run: | | |
poetry run python README_files/render.py | |
- name: Commit and push changes to repository | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: 'Automated code format and README render' |