From 7d313c1045863a3b934c8398b4da359cbc058d44 Mon Sep 17 00:00:00 2001 From: Andrey Gubarev Date: Fri, 16 Jun 2023 12:39:46 +0400 Subject: [PATCH] fix syntax --- .github/workflows/python-package.yml | 78 ++++++++++++++-------------- 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index d752124..7843dfe 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -10,59 +10,59 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: '3.x' + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.x' - - name: Install dependencies - run: pip install ansible-lint + - name: Install dependencies + run: pip install ansible-lint - - name: Lint with ansible-lint - run: ansible-lint -v + - name: Lint with ansible-lint + run: ansible-lint -v lint-python: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: '3.x' + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.x' - - name: Install dependencies - run: pip install pycodestyle + - name: Install dependencies + run: pip install pycodestyle - - name: Lint with pycodestyle - run: python -m pycodestyle molecule_qemu + - name: Lint with pycodestyle + run: python -m pycodestyle molecule_qemu build: runs-on: ubuntu-latest needs: [lint-ansible, lint-python] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: '3.x' + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.x' - - name: Install dependencies - run: python -m pip install build --user + - name: Install dependencies + run: python -m pip install build --user - - name: Build a binary wheel and a source tarball - run: python -m build --sdist --wheel --outdir dist/ . + - name: Build a binary wheel and a source tarball + run: python -m build --sdist --wheel --outdir dist/ . - - name: Upload artifact - uses: actions/upload-artifact@v3 - with: - name: python-package - path: 'dist/*' + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: python-package + path: 'dist/*' publish: runs-on: ubuntu-latest @@ -74,13 +74,13 @@ jobs: with: name: python-package - - name: Publish package - if: startsWith(github.ref, 'refs/tags') - uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} - packages-dir: . + - name: Publish package + if: startsWith(github.ref, 'refs/tags') + uses: pypa/gh-action-pypi-publish@release/v1 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} + packages-dir: . release: runs-on: ubuntu-latest