Skip to content

Commit

Permalink
[fix] Revert commented parts of packaging workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
alberttorosyan committed Mar 9, 2022
1 parent d2cf867 commit d1f16f4
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 53 deletions.
102 changes: 51 additions & 51 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,54 +77,54 @@ jobs:
UPDATE_TAG: ${{ inputs.branch || 'latest' }}
run: . create-docker-image.sh

# macos-dist:
# if: ${{ github.event_name == 'scheduled' || github.actor == 'gorarakelyan' || github.actor == 'alberttorosyan' || github.actor == 'roubkar' }}
# runs-on: ${{matrix.os}}
# strategy:
# fail-fast: false
# matrix:
# python-version: [ '3.6', '3.7', '3.8', '3.9', '3.10' ]
# os: [ 'macos-latest' ]
# name: Python ${{ matrix.python-version }} on ${{ matrix.os }} build
# steps:
# - name: Checkout sources
# uses: actions/checkout@v2
# with:
# ref: ${{ inputs.branch || github.ref }}
#
# - name: Use node v16
# uses: actions/setup-node@v2
# with:
# node-version: '16'
#
# - name: Build UI
# working-directory: ./aim/web/ui
# run: |
# npm i
# CI=false npm run build
#
# - name: Setup python
# uses: actions/setup-python@v2
# with:
# python-version: ${{ matrix.python-version }}
# architecture: x64
#
# - name: Install dev dependencies
# run: |
# python -m pip install -r requirements.dev.txt
# python -m pip install -r requirements.txt
#
# - name: Build bdist wheel
# run: |
# python setup.py bdist_wheel -d dist
#
# - name: Build sdist
# if: matrix.python-version == '3.9'
# run: |
# python setup.py sdist
#
# - name: Publish wheel
# env:
# PYPI_PASSWORD: ${{ secrets.pypi_password }}
# run: |
# python -m twine upload -u __token__ -p "${PYPI_PASSWORD}" dist/*
macos-dist:
if: ${{ github.event_name == 'scheduled' || github.actor == 'gorarakelyan' || github.actor == 'alberttorosyan' || github.actor == 'roubkar' }}
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
python-version: [ '3.6', '3.7', '3.8', '3.9', '3.10' ]
os: [ 'macos-latest' ]
name: Python ${{ matrix.python-version }} on ${{ matrix.os }} build
steps:
- name: Checkout sources
uses: actions/checkout@v2
with:
ref: ${{ inputs.branch || github.ref }}

- name: Use node v16
uses: actions/setup-node@v2
with:
node-version: '16'

- name: Build UI
working-directory: ./aim/web/ui
run: |
npm i
CI=false npm run build
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: x64

- name: Install dev dependencies
run: |
python -m pip install -r requirements.dev.txt
python -m pip install -r requirements.txt
- name: Build bdist wheel
run: |
python setup.py bdist_wheel -d dist
- name: Build sdist
if: matrix.python-version == '3.9'
run: |
python setup.py sdist
- name: Publish wheel
env:
PYPI_PASSWORD: ${{ secrets.pypi_password }}
run: |
python -m twine upload -u __token__ -p "${PYPI_PASSWORD}" dist/*
4 changes: 2 additions & 2 deletions docker/build-wheels.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/bash
#set -e
set -e

cd /opt/aim

echo "build python wheels"
for python_version in 'cp37-cp37m' 'cp38-cp38' 'cp39-cp39'
for python_version in 'cp36-cp36m' 'cp37-cp37m' 'cp38-cp38' 'cp39-cp39' 'cp310-cp310'
do
PYTHON_ROOT=/opt/python/${python_version}/
PYTHON_VERSION=`$PYTHON_ROOT/bin/python --version`
Expand Down

0 comments on commit d1f16f4

Please sign in to comment.