Skip to content

Bump version 0.0.64 #46

Bump version 0.0.64

Bump version 0.0.64 #46

Workflow file for this run

name: Publish Python package
on:
push:
tags:
- "*"
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
django-version: ['3.1', '3.2', '4.0', '4.1']
drf-version: ['3.13', '3.14', '3.15']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v4
with:
path: ${{ env.pythonLocation }}
key: python-${{ matrix.python-version }}.django-${{ matrix.django-version }}.drf-${{ matrix.drf-version }}.hashes-${{ hashFiles('requirements.txt') }}.${{ hashFiles('requirements-deps.in') }}.${{ hashFiles('requirements-dev.txt') }}
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install django==${{ matrix.django-version }}.* djangorestframework==${{ matrix.drf-version }}.*
pip install -r requirements-deps.in
pip install -r requirements-dev.txt
sudo apt-get install -y --no-install-recommends gdal-bin
- name: Run checks
run: make style types test
publish:
runs-on: ubuntu-latest
needs: build
environment:
name: pypi
url: https://pypi.org/p/restdoctor
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
- name: Install dependencies
run: |
pip install -r requirements.txt
- name: Build and publish
run: |
python setup.py sdist bdist_wheel
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1