Install and run info #6
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: kumaone python package | |
on: | |
push: | |
branches: | |
- main | |
- feat/dh-github-actions | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["pypy3.10", "3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: pip | |
# You can test your matrix by printing the current Python version | |
- name: Display Python version | |
run: python -c "import sys; print(sys.version)" | |
- name: Install pipenv | |
run: | | |
python -m pip install --upgrade pip | |
pip install pipenv wheel | |
- name: Install dependencies | |
run: pipenv install --dev | |
- name: Install kumaone package | |
run: pipenv install . | |
- name: Check kumaone version | |
run: pipenv run kumaone info | |
- name: Build kumaone python package | |
run: pipenv run hatch build |