Skip to content

chore: release v4

chore: release v4 #80

Workflow file for this run

name: algoliasearch-django
on:
push:
branches: [master]
pull_request:
types: [opened, synchronize]
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
runs-on: ${{ matrix.os }}
continue-on-error: true
strategy:
matrix:
include:
# django 4.0
- version: "3.8"
toxenv: py38-django40
os: ubuntu-22.04
- version: "3.9"
toxenv: py39-django40
os: ubuntu-22.04
- version: "3.10"
toxenv: py310-django40
os: ubuntu-22.04
# django 4.1
- version: "3.8"
toxenv: py38-django41
os: ubuntu-22.04
- version: "3.9"
toxenv: py39-django41
os: ubuntu-22.04
- version: "3.10"
toxenv: py310-django41
os: ubuntu-22.04
- version: "3.11"
toxenv: py311-django41
os: ubuntu-22.04
# django 4.2
- version: "3.8"
toxenv: py38-django42
os: ubuntu-22.04
- version: "3.9"
toxenv: py39-django42
os: ubuntu-22.04
- version: "3.10"
toxenv: py310-django42
os: ubuntu-22.04
- version: "3.11"
toxenv: py311-django42
os: ubuntu-22.04
- version: "3.12"
toxenv: py312-django42
os: ubuntu-22.04
# django 5.0
- version: "3.10"
toxenv: py310-django50
os: ubuntu-22.04
- version: "3.11"
toxenv: py311-django50
os: ubuntu-22.04
- version: "3.12"
toxenv: py312-django50
os: ubuntu-22.04
# django 5.1
- version: "3.10"
toxenv: py310-django51
os: ubuntu-22.04
- version: "3.11"
toxenv: py311-django51
os: ubuntu-22.04
- version: "3.12"
toxenv: py312-django51
os: ubuntu-22.04
- version: "3.13"
toxenv: py313-django51
os: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.version }}
- name: Install dependencies and run tests
timeout-minutes: 20
run: |
python -m venv python-ci-run
source python-ci-run/bin/activate
pip3 install --upgrade pip
pip3 install tox
TOXENV=${{ matrix.toxenv }} ALGOLIA_APPLICATION_ID=${{ secrets.ALGOLIA_APPLICATION_ID }} ALGOLIA_API_KEY=${{ secrets.ALGOLIA_API_KEY }} tox
release:
name: Publish
runs-on: ubuntu-22.04
environment:
name: pypi
url: https://pypi.org/p/algoliasearch-django
permissions:
id-token: write
needs:
- build
if: |
always() &&
!contains(needs.*.result, 'cancelled') &&
!contains(needs.*.result, 'failure')
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.13
- name: deps and build
run: |
pip3 install --upgrade pip
python -m pip install -U build
python -m build
- name: Publish algoliasearch package to PyPI
if: |
github.ref == 'refs/heads/master' &&
startsWith(github.event.head_commit.message, 'chore: release')
uses: pypa/gh-action-pypi-publish@release/v1