From 810c341b3824ab0713fb7da3cfed82a2ecb0679a Mon Sep 17 00:00:00 2001 From: KOLANICH Date: Mon, 27 Feb 2023 18:19:03 +0000 Subject: [PATCH] Create pipeline from the template --- .github/workflows/python-package.yml | 42 ++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/python-package.yml diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml new file mode 100644 index 0000000..303913e --- /dev/null +++ b/.github/workflows/python-package.yml @@ -0,0 +1,42 @@ +name: Python package + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ["3.10", "3.11"] + + steps: + - uses: actions/checkout@main + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@main + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip setuptools setuptools_scm build wheel + + - name: Build + run: | + python -m build -nwx + + - name: Install + run: | + python -m pip install --upgrade ./dist/*.whl + + - name: Test + run: | + python3 -m test + + - uses: actions/upload-artifact@v3 + with: + name: wheel + path: dist/*.whl