Add GitHub actions #10
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: | |
- dev | |
pull_request: | |
branches: | |
- dev | |
- main | |
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: Upgrade pip | |
run: python -m pip install --upgrade pip | |
- name: Install pipenv | |
run: pip install pipenv wheel hatch | |
- name: Install dependencies | |
run: pipenv install | |
- name: Build kumaone python package | |
run: pipenv run hatch build | |
- name: Install kumaone package | |
run: pipenv install --ignore-pipfile . | |
- name: Check kumaone version | |
run: pipenv run kumaone info |