fix: prevent overwrite of hidden relations in patch #78
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: Tests | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: '0 0 * * 0' | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Ensure latest setuptools | |
run: | | |
python -m pip install --upgrade pip setuptools | |
- name: Install dependencies | |
run: pip install tox | |
- name: Run Tox | |
run: python -m tox -f py$(python --version 2>&1 | awk '{split($2, a, "."); print a[1]a[2]}') | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.12 | |
- name: Ensure latest setuptools | |
run: | | |
python -m pip install --upgrade pip setuptools | |
- name: Install dependencies | |
run: pip install tox | |
- name: Run Tox | |
run: tox -e lint | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.12 | |
- name: Ensure latest setuptools | |
run: | | |
python -m pip install --upgrade pip setuptools | |
- name: Install dependencies | |
run: pip install tox | |
- name: Run Tox | |
run: tox -e format | |
gitlint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8' | |
- name: Install gitlint | |
run: pip install gitlint | |
- name: Run gitlint | |
run: gitlint --contrib contrib-title-conventional-commits --ignore B1,B5,B6 | |