Skip to content

chore(ci): upgrade python-semantic-release to v9.8.8 #144

chore(ci): upgrade python-semantic-release to v9.8.8

chore(ci): upgrade python-semantic-release to v9.8.8 #144

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- master
jobs:
prepare:
runs-on: ubuntu-latest
steps:
- name: Create matrix
id: create_matrix
uses: fabiocaccamo/create-matrix-action@v3
with:
matrix: |
python-version {3.7}, django-version {2.0,2.1,2.2,3.0,3.1}
python-version {3.8}, django-version {2.2,3.0,3.1,3.2,4.0,4.1,4.2}
python-version {3.9}, django-version {2.2,3.0,3.1,3.2,4.0,4.1,4.2}
python-version {3.10}, django-version {3.2,4.0,4.1,4.2,5.0}
python-version {3.11}, django-version {4.0,4.1,4.2,5.0}
python-version {3.12}, django-version {4.2, 5.0}
outputs:
matrix: ${{ steps.create_matrix.outputs.matrix }}
test:
needs: prepare
strategy:
fail-fast: false
matrix:
include: ${{ fromJson(needs.prepare.outputs.matrix) }}
name: "Python ${{ matrix.python-version }} + Django ${{ matrix.django-version }}"
runs-on: ubuntu-latest
env:
POETRY_VIRTUALENVS_CREATE: false
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- run: pip install poetry
- run: poetry install
- run: poetry build --format wheel
- name: Make sure tests use dist instead of source
run: |
rm -rf django_object_actions
pip install --force-reinstall dist/*.whl
- run: pip install "Django==${{ matrix.django-version }}.*"
- run: make test
lint:
name: "Black"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- run: pip install black
- run: black --check .