Skip to content

Commit

Permalink
CI: upgrade & uvify
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed Jan 10, 2025
1 parent 7c66840 commit a5b5e0c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 26 deletions.
39 changes: 15 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,21 @@ name: CI
jobs:
Test-Python:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- python-version: '3.11'
steps:
- uses: actions/checkout@v3
- name: 'Set up Python ${{ matrix.python-version }}'
uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with:
python-version: '${{ matrix.python-version }}'
cache: pip
- run: pip install -U pip
- run: pip install tox-gh-actions tox
python-version: 3.13
- run: uv pip install tox-gh-actions tox tox-uv
- run: tox
- uses: codecov/codecov-action@v3
- uses: codecov/codecov-action@v5
Lint-Frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 22
cache: npm
cache-dependency-path: package.json
- run: npm i --ignore-scripts
Expand All @@ -43,24 +36,22 @@ jobs:
- Lint-Frontend
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with:
python-version: '3.11'
cache: pip
- uses: actions/setup-node@v3
python-version: 3.13
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 22
cache: npm
cache-dependency-path: package.json
- run: pip install build
- run: npm i --ignore-scripts
- run: npm start
env:
NODE_ENV: production
- run: python -m build .
- run: uv build .
- run: zipinfo dist/*.whl | grep static/infokala/infokala.js || exit 42
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: dist
path: dist
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[tox]
isolated_build = True
envlist =
py311-django{41,42}
py313-django{41,42,50}

[gh-actions]
python =
3.11: py311
3.13: py313

[testenv]
commands = py.test -ra -vvv --cov
Expand All @@ -15,3 +15,4 @@ deps =
pytest-django
django41: Django~=4.1.0
django42: Django~=4.2.0
django50: Django~=5.0.0

0 comments on commit a5b5e0c

Please sign in to comment.