install all #14
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
on: | |
push: | |
branches: [ master, main, update ] | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
check: | |
name: Test | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.10", "3.11", "3.12"] | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
with: | |
token: ${{github.token}} | |
- name: set up python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
token: ${{github.token}} | |
- name: install uv | |
run: curl -LsSf https://astral.sh/uv/install.sh | sh | |
- name: install project | |
run: | | |
uv venv .venv -p ${{matrix.python-version}} | |
source .venv/bin/activate | |
uv pip install -e .[all] | |
- name: Lint | |
run: | | |
source .venv/bin/activate | |
flake8 tests hundred_x examples | |
- name: Tests | |
run: | | |
source .venv/bin/activate | |
python -m pytest . |