Skip to content

OpenConceptLab/ocl_issues#1909 | github actions | installing wheel #23

OpenConceptLab/ocl_issues#1909 | github actions | installing wheel

OpenConceptLab/ocl_issues#1909 | github actions | installing wheel #23

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Python application
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python setup.py install
pip install six
- name: Unittest
run: |
python -m unittest ocldev/tests/*.py
pypi-publish:
needs: [test]
name: Publish to PyPi
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/ocldev
permissions:
id-token: write
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
pip install --upgrade pip --user
pip install wheel
pip install setuptools==44.1.0 --user
pip install twine==1.15.0 --user
- name: Build Wheel
run: |
python setup.py sdist bdist_wheel --universal
twine check dist/*
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1