Skip to content

Commit

Permalink
Merge branch 'intel:main' into uefi_support
Browse files Browse the repository at this point in the history
  • Loading branch information
jpshivakavi authored Dec 19, 2023
2 parents b8b0aa6 + dfbc681 commit d7a2f26
Show file tree
Hide file tree
Showing 6 changed files with 912 additions and 44 deletions.
24 changes: 5 additions & 19 deletions .github/workflows/publish-to-test-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,24 +34,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
- uses: abatilo/actions-poetry@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build --user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
poetry-version: 1.4.0
- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
run: >-
poetry config repositories.testpypi https://test.pypi.org/legacy/
poetry publish --build -u __token__ -p ${{ secrets.TEST_PYPI_API_TOKEN }}
15 changes: 8 additions & 7 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,25 +33,26 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- uses: abatilo/actions-poetry@v2
with:
poetry-version: 1.4.0
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools build
python -m pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
poetry install --with dev
- name: Build wheel
run: |
python -m build --wheel
poetry build
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
poetry run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
poetry run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
22 changes: 6 additions & 16 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,13 @@ permissions:

jobs:
deploy:

name: Build and publish Python 🐍 distributions 📦 to TestPyPI
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
- uses: abatilo/actions-poetry@v2
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
poetry-version: 1.4.0
- name: Publish distribution 📦 to PyPI
run: >-
poetry publish --build -u __token__ -p ${{ secrets.TEST_PYPI_API_TOKEN }}
Loading

0 comments on commit d7a2f26

Please sign in to comment.