Skip to content

Commit

Permalink
Merge pull request #148 from ppfeufer/update-repo-config
Browse files Browse the repository at this point in the history
[MISC] Update repo configs
  • Loading branch information
ppfeufer authored Nov 18, 2024
2 parents 1aa0398 + 87df7d7 commit f8b3371
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 10 deletions.
28 changes: 18 additions & 10 deletions .github/workflows/automated-checks.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
name: Tests

env:
COVERAGE_DATABASE_VERSION: mariadb:10.11
COVERAGE_PYTHON_VERSION: 3.12
NODE_VERSION: 22 # [LTS] End of Life: 30 Apr 2027 (https://endoflife.date/nodejs)
REDIS_VERSION: latest

on:
push:
branches:
Expand Down Expand Up @@ -27,25 +33,27 @@ jobs:
uses: actions/checkout@v4

# Set up Python
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version-file: 'pyproject.toml' # Read the Python version from the pyproject.toml file
# - name: Set up Python
# uses: actions/setup-python@v5
# with:
# python-version-file: 'pyproject.toml' # Read the Python version from the pyproject.toml file

# Set up Node.js
- name: Setup Node.js
uses: actions/setup-node@v4
with:
# https://endoflife.date/nodejs
node-version: '20' # [LTS] End of Life: 30 Apr 2026
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
cache-dependency-path: 'package-lock.json'
- run: npm install

- name: Run Pre Commit Checks
uses: pre-commit/[email protected]

# Run Test Coverage
test-coverage:
needs: [pre-commit]
needs: [ pre-commit ]
name: AA Latest (Python ${{ matrix.python-version }} with ${{ matrix.database }})
runs-on: ubuntu-latest

Expand Down Expand Up @@ -86,11 +94,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

# Install redis
# Install redis
- name: Install redis
uses: shogo82148/actions-setup-redis@v1
with:
redis-version: "latest"
redis-version: ${{ env.REDIS_VERSION }}

# Verify that redis is up
- name: Verify that redis is up
Expand Down Expand Up @@ -128,8 +136,8 @@ jobs:
)
)
&& (
matrix.python-version == '3.12'
&& matrix.database == 'mariadb:10.11'
matrix.python-version == env.COVERAGE_PYTHON_VERSION
&& matrix.database == env.COVERAGE_DATABASE_VERSION
)
}}
uses: codecov/codecov-action@v4
Expand Down
3 changes: 3 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
default_language_version:
# force all unspecified python hooks to run python3
python: python3
node: 22.4.1

# https://pre-commit.ci/
ci:
Expand Down Expand Up @@ -132,6 +133,7 @@ repos:
- id: eslint
name: ESLint
description: Check for problems in JavaScript files.
language: node
exclude: |
(?x)(
.min(.js|.js.map)|
Expand All @@ -148,6 +150,7 @@ repos:
- id: stylelint
name: Stylelint
description: Check for problems in CSS files.
language: node
exclude: |
(?x)(
.min(.css|.css.map)|
Expand Down

0 comments on commit f8b3371

Please sign in to comment.