Skip to content

Commit

Permalink
Switch to ESM and Baseline2024
Browse files Browse the repository at this point in the history
  • Loading branch information
codingjoe committed Oct 27, 2024
1 parent b852632 commit bac4d7b
Show file tree
Hide file tree
Showing 8 changed files with 1,090 additions and 183 deletions.
48 changes: 31 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,33 @@ jobs:
- run: python -m build --sdist --wheel
- run: python -m twine check dist/*

standardjs:
js-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v4
with:
node-version: '14.x'
- uses: actions/checkout@v4
- id: cache-npm
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Node dependencies
run: npm ci
- run: npm run lint:js

lint:

js-test:
runs-on: ubuntu-latest
needs:
- js-lint
steps:
- uses: actions/setup-node@v4
- uses: actions/checkout@v4
- name: Install Node dependencies
run: npm ci
- run: node --test --experimental-test-coverage --test-reporter=lcov --test-reporter-destination=lcov.txt
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: javascript
file: lcov.txt

py-lint:
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -59,20 +67,19 @@ jobs:

pytest:
needs:
- lint
- standardjs
- py-lint
- dist
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
django-version:
- "3.2"
- "4.2"
- "5.0"
- "5.1"
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -90,12 +97,16 @@ jobs:
curl -qO "https://chromedriver.storage.googleapis.com/$(curl -q https://chromedriver.storage.googleapis.com/LATEST_RELEASE)/chromedriver_linux64.zip"
unzip chromedriver_linux64.zip -d bin
- run: python -m pip install .[test] codecov
- run: python -m pip install .[test]
- run: python -m pip install django~=${{ matrix.django-version }}.0
- run: python -m pytest -m "not selenium"
env:
PATH: $PATH:$(pwd)/bin
- run: codecov
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: python


selenium:
needs:
Expand All @@ -120,6 +131,9 @@ jobs:
- run: python -m pip install -e .[test]
- run: python -m pytest -m selenium
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: selenium


analyze:
Expand Down
Loading

0 comments on commit bac4d7b

Please sign in to comment.