Skip to content

commit files used to publish #1

commit files used to publish

commit files used to publish #1

Workflow file for this run

name: cicd
on: [push]
jobs:
build:
runs-on: ubuntu-20.04
strategy:
max-parallel: 1
matrix:
python-version: [3.9]
steps:
- name: Checkout source
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
submodules: recursive
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python do.py setup
python do.py init
- name: Build distribution
run: |
python do.py dist
- name: Archive generated artifacts
uses: actions/upload-artifact@v2
with:
name: generated-artifacts
path: |
dist
snappi_ixload
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
verbose: true
python_tests:
needs: build
runs-on: ubuntu-20.04
strategy:
max-parallel: 6
matrix:
python-version: [3.7, 3.8, 3.9]
steps:
- name: Checkout source
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- uses: actions/download-artifact@v2
with:
name: generated-artifacts
- name: Install dependencies
run: |
python do.py setup
python do.py install
- name: Display structure of downloaded files
run: ls -R
#- name: Run python tests
# run: |
# sudo python do.py test