Build and upload binary wheels to PyPI #332
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: RpgPy CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
timeout-minutes: 20 | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
python-version: ["3.10", "3.11"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: "pip" | |
- name: Configure Pagefile | |
if: runner.os == 'Windows' | |
uses: al-cheb/[email protected] | |
with: | |
minimum-size: 8GB | |
- name: Install dependencies | |
run: | | |
python3 -m pip install .[test,dev] | |
python3 setup.py build_ext --inplace | |
- name: Run pre-commit checks | |
if: startsWith(matrix.os, 'ubuntu-') | |
run: | | |
pre-commit run --all-files --show-diff-on-failure | |
- name: Test with pytest | |
run: | | |
pytest --flake-finder tests/unit/ --flake-runs=2 | |
- name: Run e2e tests | |
run: | | |
python tests/e2e/level1/l1_test_runner.py | |
python tests/e2e/level0/l0_test_runner.py |