ria-toolkit-oss/.riahub/workflows/build-project.yaml
G gillian 7ef3fe8fb1
Some checks failed
Test with tox / Test with tox (3.11) (pull_request) Successful in 15m58s
Build Sphinx Docs Set / Build Docs (pull_request) Successful in 18m3s
Build Project / Build Project (3.10) (pull_request) Successful in 21m51s
Test with tox / Test with tox (3.10) (pull_request) Failing after 21m59s
Build Project / Build Project (3.11) (pull_request) Successful in 22m37s
Build Project / Build Project (3.12) (pull_request) Successful in 22m35s
Test with tox / Test with tox (3.12) (pull_request) Successful in 6m53s
Revert "Drop Python 3.10 support, minimum is now 3.11"
This reverts commit 70c790cadd.
2026-05-12 13:39:05 -04:00

51 lines
1.2 KiB
YAML

name: Build Project
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
project-build-check:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.10', '3.11', '3.12' ]
name: Build Project
steps:
- name: Check out project
uses: actions/checkout@v4
- name: Build project
run: |
poetry build
- name: Set up Python environment
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Create Python virtual environment
run: |
python -m venv .venv
- name: Install project in virtual environment
run: |
source .venv/bin/activate
pip install dist/*.whl
# In the following step, 'pip list' prints out a list of installed dependencies. This is not required for the
# build but useful for debugging.
- name: Check dependency installation
run: |
source .venv/bin/activate
pip check
pip list
- name: Very project import
run: |
source .venv/bin/activate
python -c "import ria_toolkit_oss"