Skip to content

Commit

Permalink
fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
andreygubarev committed Jun 16, 2023
1 parent 720997a commit 7d313c1
Showing 1 changed file with 39 additions and 39 deletions.
78 changes: 39 additions & 39 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 7d313c1

Please sign in to comment.