Skip to content

ci: publish to PyPI via Trusted Publishing, drop the RC scheme (#96) #825

ci: publish to PyPI via Trusted Publishing, drop the RC scheme (#96)

ci: publish to PyPI via Trusted Publishing, drop the RC scheme (#96) #825

Workflow file for this run

name: Unit Tests
on:
push:
branches: [master]
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.14"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[lint]
- name: Lint
run: |
isort apiclient tests --check-only
black --check apiclient tests
flake8 apiclient tests
test:
needs: [lint]
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[test]
- name: Unit Tests
run: |
pytest
ci-ok:
name: CI OK
needs: [lint, test]
if: always()
runs-on: ubuntu-latest
steps:
- name: Verify lint and all test jobs passed
run: |
[ "${{ needs.lint.result }}" = "success" ] && [ "${{ needs.test.result }}" = "success" ]