Bumped to 2.6.1 to fix snap python issues #82
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: Release | |
on: | |
push: | |
branches: | |
- "*" | |
tags: | |
- "*" | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11 | |
- name: Install setuptools and | |
run: | | |
python -m pip install --upgrade setuptools wheel | |
python -m pip install -r requirements-dev.txt | |
- name: Test | |
run: pytest -rA tests/ | |
azure_test: | |
name: Azure Test | |
runs-on: ubuntu-latest | |
environment: | |
name: dev.azure | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- name: 'Az CLI Login via OIDC' | |
uses: azure/login@v1 | |
with: | |
client-id: ${{ secrets.AZURE_CLIENT_ID }} | |
tenant-id: ${{ secrets.AZURE_TENANT_ID }} | |
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11 | |
- name: Install setuptools and | |
run: | | |
python -m pip install --upgrade setuptools wheel | |
python -m pip install -r requirements-dev.txt | |
- name: Test | |
run: pytest -rA azure_tests/ | |
env: | |
EMAIL: ${{ vars.EMAIL }} | |
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }} | |
publish: | |
name: Publish | |
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') | |
needs: test | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11 | |
- name: Install setuptools and | |
run: python -m pip install --upgrade setuptools wheel | |
- name: Build a binary wheel and a source tarball | |
run: python setup.py build sdist bdist_wheel | |
- name: Publish distribution 📦 to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 |