Skip to content

LangPort GitHub Actions to release #1

LangPort GitHub Actions to release

LangPort GitHub Actions to release #1

Workflow file for this run

name: LangPort GitHub Actions to release
run-name: LangPort GitHub Actions to release
on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Set up Apache Arrow
run: |
sudo apt update
sudo apt install -y -V ca-certificates lsb-release wget
wget https://apache.jfrog.io/artifactory/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb
sudo apt install -y -V ./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb
sudo apt update
sudo apt install -y -V libarrow-dev libarrow-glib-dev libparquet-dev libparquet-glib-dev
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install LangPort
run: |
cd ${{ github.workspace }}
pip install --upgrade pip
pip install -e .
- name: Test LangPort
run: |
cd ${{ github.workspace }}
python -m unittest discover langport/tests
- name: Build LangPort
run: |
cd ${{ github.workspace }}
pip install build
python -m build
- name: Release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: true
files: |
dist/*.tar.gz
dist/*.whl