feat: adding code and setup repository workflows #4
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check build | |
on: | |
pull_request: | |
branches: [ 'develop', 'main' ] | |
types: | |
- opened | |
- synchronize | |
- reopened | |
jobs: | |
build-test: | |
runs-on: 'ubuntu-latest' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set Up Python | |
uses: actions/setup-python@v4 | |
with: | |
cache: 'pip' | |
cache-dependency-path: './docs/requirements.txt' | |
python-version: '3.12.10' | |
- name: Install Dependencies | |
shell: bash | |
run: | | |
pip install -r ./docs/requirements.txt | |
pip install --upgrade build | |
- name: Build | |
shell: python | |
run: | | |
import os | |
import subprocess | |
def build_wheel(): | |
if not os.path.exists('dist'): | |
os.makedirs('dist') | |
subprocess.check_call([ 'python', '-m', 'build', '--wheel' ]) | |
build_wheel() | |