Skip to content

try splitting jobs

try splitting jobs #11

on:
push:
pull_request:
branches:
- master
jobs:
generate-wrapper:
runs-on: "ubuntu-22.04"
defaults:
run:
working-directory: ./python-wrapper
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt -qy update && sudo apt -qy upgrade
sudo apt -qy install --no-install-recommends gcc g++ swig
- name: generate wrapper
run: ./generate_swig_wrapper.sh
shell: bash
- uses: actions/upload-artifact@v4
with:
name: python-sources
path: python-wrapper/sensirion_gas_index_algorithm/**
if-no-files-found: error
py3p8_linux_build:
runs-on: "ubuntu-22.04"
needs: generate-wrapper
defaults:
run:
working-directory: ./python-wrapper
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: python-sources
path: python-wrapper/sensirion_gas_index_algorithm
- name: check source files
run: ls -al sensirion_gas_index_algorithm
- uses: actions/setup-python@v5
with:
python-version: 3.8
- name: install package
run: |
pip3 install -e .[test]
pip3 install wheel
- name: static test
run: flake8
- name: unit test
run: pytest
- name: create wheel
run: python3 setup.py bdist_wheel
- uses: actions/upload-artifact@v4
with:
path: python-wrapper/dist/**
if-no-files-found: error