Update name of check CI workflow to improve clarity

This commit is contained in:
Ethan Paul 2022-09-07 14:35:30 -04:00
parent ef8800059f
commit 44ad5da339
2 changed files with 21 additions and 5 deletions

View File

@ -7,7 +7,7 @@ on:
branches: ["devel"] branches: ["devel"]
jobs: jobs:
Test: Test:
name: Python ${{ matrix.python.version }} name: Test with Python ${{ matrix.python.version }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
@ -26,10 +26,12 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Install Python ${{ matrix.python.version }} - name: Install Python ${{ matrix.python.version }}
uses: actions/setup-python@v4 uses: actions/setup-python@v4
with: with:
python-version: ${{ matrix.python.version }} python-version: ${{ matrix.python.version }}
- name: Configure Job Cache - name: Configure Job Cache
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
@ -41,21 +43,27 @@ jobs:
# will be invalidated, and thus all packages will be redownloaded, if the # will be invalidated, and thus all packages will be redownloaded, if the
# lockfile is updated # lockfile is updated
key: ${{ runner.os }}-${{ matrix.python.toxenv }}-${{ hashFiles('**/poetry.lock') }} key: ${{ runner.os }}-${{ matrix.python.toxenv }}-${{ hashFiles('**/poetry.lock') }}
- name: Configure Path - name: Configure Path
run: echo "$HOME/.local/bin" >> $GITHUB_PATH run: echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Configure Environment - name: Configure Environment
run: .github/scripts/setup-env.sh run: .github/scripts/setup-env.sh
- name: Run Toxenv ${{ matrix.python.toxenv }} - name: Run Toxenv ${{ matrix.python.toxenv }}
run: poetry run tox -e ${{ matrix.python.toxenv }} run: poetry run tox -e ${{ matrix.python.toxenv }}
Check: Check:
name: Security, Linting, Formatting, Typing
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Install Python 3.8 - name: Install Python 3.8
uses: actions/setup-python@v4 uses: actions/setup-python@v4
with: with:
python-version: 3.8 python-version: 3.8
- name: Configure Job Cache - name: Configure Job Cache
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
@ -66,13 +74,18 @@ jobs:
# Hardcoded 'py310' slug here lets this cache piggyback on the 'py310' cache # Hardcoded 'py310' slug here lets this cache piggyback on the 'py310' cache
# that is generated for the tests above # that is generated for the tests above
key: ${{ runner.os }}-py310-${{ hashFiles('**/poetry.lock') }} key: ${{ runner.os }}-py310-${{ hashFiles('**/poetry.lock') }}
- name: Configure Path - name: Configure Path
run: echo "$HOME/.local/bin" >> $GITHUB_PATH run: echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Configure Environment - name: Configure Environment
run: .github/scripts/setup-env.sh run: .github/scripts/setup-env.sh
- name: Run Static Analysis Checks - name: Run Static Analysis Checks
run: poetry run tox -e static run: poetry run tox -e static
- name: Run Static Analysis Checks (Tests) - name: Run Static Analysis Checks (Tests)
run: poetry run tox -e static-tests run: poetry run tox -e static-tests
- name: Run Security Checks - name: Run Security Checks
run: poetry run tox -e security run: poetry run tox -e security

View File

@ -176,7 +176,10 @@ def flat_transaction(interface: peewee.Database):
return outer return outer
class PathField(peewee.CharField): # TODO: The disable=abstract-method pragmas below are to get around new linting warnings
# in pylint>2.12, but they haven't been addressed properly. They should be revisited
# and fixed properly in the future.
class PathField(peewee.CharField): # pylint: disable=abstract-method
"""Field class for storing file paths """Field class for storing file paths
This field can be used to simply store pathlib paths in the database without needing to This field can be used to simply store pathlib paths in the database without needing to
@ -234,7 +237,7 @@ class PathField(peewee.CharField):
) )
class PrecisionFloatField(peewee.FloatField): class PrecisionFloatField(peewee.FloatField): # pylint: disable=abstract-method
"""Field class for storing floats with custom precision parameters """Field class for storing floats with custom precision parameters
This field adds support for specifying the ``M`` and ``D`` precision parameters of a This field adds support for specifying the ``M`` and ``D`` precision parameters of a
@ -264,7 +267,7 @@ class PrecisionFloatField(peewee.FloatField):
return [self.max_digits, self.decimal_places] return [self.max_digits, self.decimal_places]
class JSONField(peewee.TextField): class JSONField(peewee.TextField): # pylint: disable=abstract-method
"""Field class for storing JSON-serializable data """Field class for storing JSON-serializable data
This field can be used to store a dictionary of data directly in the database without needing This field can be used to store a dictionary of data directly in the database without needing
@ -319,7 +322,7 @@ class JSONField(peewee.TextField):
) from err ) from err
class EnumField(peewee.CharField): class EnumField(peewee.CharField): # pylint: disable=abstract-method
"""Field class for storing Enums """Field class for storing Enums
This field can be used for storing members of an :class:`enum.Enum` in the database, This field can be used for storing members of an :class:`enum.Enum` in the database,