fix: debugpy version #167
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: build | |
on: | |
push: | |
pull_request: | |
branches: [ main, beta ] | |
types: [ opened, reopened, synchronize ] | |
env: | |
ACCESS_TOKEN: ${{ secrets.MB_ACCESS_TOKEN }} | |
ORG_ID: ${{ vars.ORG_ID }} | |
ORG_NAME: ${{ vars.ORG_NAME }} | |
MB_BASE_URL: ${{ vars.MB_BASE_URL}} | |
NUMBER_OF_MEMBERS: ${{ vars.NUMBER_OF_MEMBERS }} | |
TEAM_NAME: ${{ vars.TEAM_NAME }} | |
jobs: | |
pkg-and-docs: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.10'] | |
poetry-version: [1.6] | |
steps: | |
- name: setup python ${{matrix.python-version}} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{matrix.python-version}} | |
- name: Check-out repository | |
uses: actions/checkout@v3 | |
- name: Install poetry | |
uses: abatilo/actions-poetry@v2 | |
with: | |
poetry-version: ${{ matrix.poetry-version }} | |
- name: Install package | |
run: poetry install | |
- name: Test | |
run: poetry run pytest tests/ --cov=masterblaster --cov-report=xml | |
- name: Codecov for coverage tracking | |
uses: codecov/codecov-action@v3 | |
with: | |
files: ./coverage.xml | |
- name: Docs | |
run: poetry run make html --directory docs/ | |
deploy: | |
needs: pkg-and-docs | |
if : github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta' | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: write | |
strategy: | |
matrix: | |
python-version: ['3.10'] | |
poetry-version: [1.6] | |
steps: | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{matrix.python-version}} | |
- name: Check-out repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.PAT }} | |
- name: Install poetry | |
uses: abatilo/actions-poetry@v2 | |
with: | |
poetry-version: ${{ matrix.poetry-version }} | |
- name: Install package | |
run: poetry install | |
- name: Python Semantic Release | |
uses: python-semantic-release/python-semantic-release@master | |
with: | |
github_token: ${{ secrets.PAT }} | |
- name: Build | |
run: poetry build | |
- name: Publish to TestPyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_TEST_TOKEN }} | |
repository-url: https://test.pypi.org/legacy/ | |
- name: Test install from TestPyPI | |
run: | | |
pip install \ | |
--index-url https://test.pypi.org/simple/ \ | |
--extra-index-url https://pypi.org/simple \ | |
masterblaster-py | |
- name: Publish to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_TOKEN }} |