Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 81 additions & 3 deletions .github/workflows/automated-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
- name: Run Pre Commit Checks
uses: pre-commit/action@v3.0.1

# Run Test Coverage
# Run Test Coverage for Laatest Release
test-coverage:
needs: [ pre-commit ]
name: AA Latest (Python ${{ matrix.python-version }} with ${{ matrix.database }})
Expand All @@ -66,18 +66,19 @@ jobs:
- '3.11' # [EOL] End of Life: 31 Dec 2027
- '3.12' # [EOL] End of Life: 31 Dec 2028
- '3.13' # [EOL] End of Life: 31 Oct 2029
# - '3.14' # [EOL] End of Life: 31 Oct 2030
# MySQL versions to test against
database:
# https://endoflife.date/mysql
- mysql:8.0 # [LTS] Maintained until: 30 Apr 2026
- mysql:8.4 # [LTS] Maintained until: 30 Apr 2032
- mysql:9.7 # [LTS] Maintained until: 21 Apr 2034
# https://endoflife.date/mariadb and https://mariadb.com/kb/en/mariadb-server-release-dates/
- mariadb:10.6 # [LTS] Maintained until: 06 Jul 2026
- mariadb:10.11 # [LTS] Maintained until: 16 Feb 2028
- mariadb:11.4 # [LTS] Maintained until: 29 May 2029
- mariadb:11.8 # [LTS] Maintained until: 04 Jun 2028

continue-on-error: ${{ matrix.python-version == '3.13' }}
# continue-on-error: ${{ matrix.python-version == '3.14' }}

# Set up services
services:
Expand Down Expand Up @@ -152,6 +153,83 @@ jobs:
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}


# Run Test Coverage for Development (master branch)
# test-coverage-development:
# needs: [ pre-commit ]
# name: AA Develeopment (Python ${{ matrix.python-version }} with ${{ matrix.database }})
# runs-on: ubuntu-latest
#
# strategy:
# # Set Python versions to test against
# matrix:
# python-version:
# # https://endoflife.date/python
# - '3.10' # [EOL] End of Life: 31 Oct 2026
# - '3.11' # [EOL] End of Life: 31 Dec 2027
# - '3.12' # [EOL] End of Life: 31 Dec 2028
# - '3.13' # [EOL] End of Life: 31 Oct 2029
# # MySQL versions to test against
# database:
# # https://endoflife.date/mysql
# - mysql:8.0 # [LTS] Maintained until: 30 Apr 2026
# - mysql:8.4 # [LTS] Maintained until: 30 Apr 2032
# # https://endoflife.date/mariadb and https://mariadb.com/kb/en/mariadb-server-release-dates/
# - mariadb:10.6 # [LTS] Maintained until: 06 Jul 2026
# - mariadb:10.11 # [LTS] Maintained until: 16 Feb 2028
# - mariadb:11.4 # [LTS] Maintained until: 29 May 2029
# - mariadb:11.8 # [LTS] Maintained until: 04 Jun 2028
#
# # continue-on-error: ${{ matrix.python-version == '3.12' }}
#
# # Set up services
# services:
# database:
# image: ${{ matrix.database }}
# env:
# MYSQL_ROOT_PASSWORD: temp_password_aa_tox_tests
# MYSQL_DATABASE: tox_allianceauth
# ports:
# - 3306:3306
# options: --tmpfs /var/lib/mysql
#
# steps:
# # Checkout the repository
# - name: Checkout
# uses: actions/checkout@v6
#
# # Install redis
# - name: Install redis
# uses: shogo82148/actions-setup-redis@v1
# with:
# redis-version: ${{ env.REDIS_VERSION }}
#
# # Verify that redis is up
# - name: Verify that redis is up
# run: redis-cli ping
#
# # Set up Python
# - name: Setup Python ${{ matrix.python-version }}
# uses: actions/setup-python@v6
# with:
# python-version: ${{ matrix.python-version }}
#
# # Install Tox and any other packages
# - name: Install Tox and any other packages
# run: |
# python -m pip install --upgrade pip
# python -m pip install --upgrade tox tox-gh-actions
#
# # Run Tox with the specified environment
# - name: Run Tox
# env:
# TOX_ENV: allianceauth-development
# DB_HOST: 127.0.0.1
# DB_USER: root
# DB_PASSWORD: temp_password_aa_tox_tests
# run: tox -v -e ${{ env.TOX_ENV }}


# Run PyPi Build Test
pypi-build-test:
needs: [ test-coverage ]
Expand Down
18 changes: 9 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,19 +121,19 @@ repos:
description: Ensure that files end with a newline.

- repo: https://github.com/eslint/eslint
rev: 2656772377429ba90ade21adc69661e4ae3a4625 # frozen: v10.2.0
rev: 9bc0cc45b645bacb23e36e88c7b43c55f22d00d3 # frozen: v10.3.0
hooks:
- id: eslint
name: ESLint
description: Check for problems in JavaScript files.
language: node
additional_dependencies:
# eslint itself needs to be here when using additional_dependencies.
- eslint@10.2.0 # https://github.com/eslint/eslint/releases/latest
- globals@17.4.0 # https://github.com/sindresorhus/globals/releases/latest
- eslint@10.3.0 # https://github.com/eslint/eslint/releases/latest
- globals@17.6.0 # https://github.com/sindresorhus/globals/releases/latest

- repo: https://github.com/thibaudcolas/pre-commit-stylelint
rev: c5ea22efe1dcff25ec53dd5b88540d6e922e3076 # frozen: v17.6.0
rev: 8b94b3ea55a821d67fa8a86c898b7874bfebc47d # frozen: v17.10.0
hooks:
- id: stylelint
name: Stylelint
Expand All @@ -143,7 +143,7 @@ repos:
- --formatter=compact
additional_dependencies:
# stylelint itself needs to be here when using additional_dependencies.
- stylelint@17.6.0 # https://github.com/stylelint/stylelint/releases/latest
- stylelint@17.10.0 # https://github.com/stylelint/stylelint/releases/latest
- stylelint-config-standard@40.0.0 # https://github.com/stylelint/stylelint-config-standard/releases/latest

- repo: https://github.com/pre-commit/pygrep-hooks
Expand Down Expand Up @@ -213,7 +213,7 @@ repos:
description: Check for extraneous `# noqa` comments.

- repo: https://github.com/PyCQA/isort
rev: a333737ed43df02b18e6c95477ea1b285b3de15a # frozen: 8.0.1
rev: dac090ce4d9ee313d086e2e89ab1acb8c2664fa1 # frozen: 9.0.0a3
hooks:
- id: isort
name: Isort
Expand Down Expand Up @@ -266,15 +266,15 @@ repos:
description: Format the tox.ini file.

- repo: https://github.com/tox-dev/pyproject-fmt
rev: 6e10264313f53d6247a8b1b984f5b5ccf50ba539 # frozen: v2.21.0
rev: 91de51aef61c5f2383f03da25604e3d65a8309e0 # frozen: v2.21.1
hooks:
- id: pyproject-fmt
name: pyproject.toml formatter
description: Format the pyproject.toml file.
args:
- --indent=4
additional_dependencies:
- tox==4.52.0 # https://github.com/tox-dev/tox/releases/latest
- tox==4.53.1 # https://github.com/tox-dev/tox/releases/latest

- repo: https://github.com/abravalheri/validate-pyproject
rev: 4b2e70d08cb2ccd26d1fba73588de41c7a5d50b7 # frozen: v0.25
Expand All @@ -293,7 +293,7 @@ repos:
- --py-version=3.10 # Minimum required Python version for AA. Update as needed.

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: ed81924a8b1cecdaa570b072528fa80c9c4d6ccd # frozen: 0.37.1
rev: 943377262562a12b57292fc98fabd7dbf81451fe # frozen: 0.37.2
hooks:
- id: check-github-actions
name: Check GitHub Actions
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Section Order:
### Deprecated
### Removed
### Security
### Miscellaneous
-->

<!-- Your changes go here -->
Expand Down
Loading