v 0.1.1 #50
This file contains 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: Build and Test Python Package | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] # [ubuntu-latest, windows-latest, macos-latest] | |
python-version: ['3.9', '3.10', '3.12'] # ['3.9', '3.10', 3.11', '3.12'] | |
architecture: [x86-64, aarch64] | |
exclude: | |
- os: windows-latest | |
architecture: aarch64 | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Set Up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Make and Dependencies (Linux) | |
if: runner.os == 'Linux' | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y make | |
make iban_validation_preprocess | |
- name: Install Dependencies (Windows) | |
if: runner.os == 'Windows' | |
run: | | |
choco install make | |
make iban_validation_preprocess | |
# - name: Cleanup | |
# run: make clean | |
- name: Run Tests | |
run: make test | |
# - name: Build Python Wrapper Using Makefile | |
# run: make build_iban_validation_py_release DIST_DIR=dist | |
# - name: Build Polars plugin Using Makefile | |
# run: make build_iban_validation_polars_release DIST_DIR=dist | |
# - name: Build Rust Lib Using Makefile | |
# run: make iban_validation_rs_release | |