Add documentation generations helper functions #3
Workflow file for this run
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: Check Python packages | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- packages/python/** | |
pull_request: | |
paths: | |
- packages/python/** | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
package: [openproblems] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Using Python 3.10 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Install tox | |
run: python -m pip install tox | |
- name: Run tox lint | |
run: | | |
cd packages/python/${{ matrix.package }} | |
tox -e lint | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10", "3.11", "3.12"] | |
package: [openproblems] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install tox | |
run: python -m pip install tox | |
- name: Test | |
run: | | |
cd packages/python/${{ matrix.package }} | |
PYTHON_ENV="${{ matrix.python-version }}" | |
PYTHON_ENV_NO_DOTS=${PYTHON_ENV//.} | |
tox run --skip-env '^(?!py'$PYTHON_ENV_NO_DOTS').+' |