Bump idna from 3.4 to 3.7 #175
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
jobs: | |
test: | |
name: Test | |
strategy: | |
matrix: | |
python-version: ["3.9.x", "3.10.x", "3.11.x", "3.12.x"] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v1 | |
- name: Install Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
virtualenvs-in-project: true | |
- name: Initialize environment | |
run: poetry install | |
- name: Run black | |
run: poetry run black temba_client | |
- name: Run ruff | |
run: poetry run ruff temba_client | |
- name: Run isort | |
run: poetry run isort temba_client | |
- name: Run tests | |
run: poetry run nose2 -C --coverage temba_client --coverage-report term --coverage-report xml | |
- name: Upload coverage | |
if: success() | |
uses: codecov/codecov-action@v1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
fail_ci_if_error: true | |
release: | |
name: Release | |
needs: [test] | |
if: startsWith(github.ref, 'refs/tags/') | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v1 | |
- name: Install Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: "3.9.x" | |
- name: Publish release | |
run: | | |
python -m pip install -U pip poetry | |
poetry build | |
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }} | |
poetry publish |