Skip to content

Add id-token: write permission to PyPI and TestPyPI workflows #49

Add id-token: write permission to PyPI and TestPyPI workflows

Add id-token: write permission to PyPI and TestPyPI workflows #49

Workflow file for this run

# PROD-14252: Temporary workaround for the upstream bug
# (https://github.com/OpenAPITools/openapi-generator/pull/20701) of the
# openapi-generator. This file will replace the generated one and can
# be removed when the upstream bug is fixed (PR #20701)
name: cosmotech_api Python package
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r test-requirements.txt
- name: Test with pytest
run: |
pytest --cov=cosmotech_api