fix README and clean up #12
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: lint | |
on: | |
push: | |
branches: | |
- main | |
- update | |
pull_request: | |
jobs: | |
lint: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
with: | |
token: ${{github.token}} | |
- name: set up python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
token: ${{github.token}} | |
- name: install uv | |
run: curl -LsSf https://astral.sh/uv/install.sh | sh | |
- name: install project | |
run: | | |
uv venv .venv -p 3.12 | |
source .venv/bin/activate | |
uv pip install -e .[all] | |
- name: lint with ruff | |
run: | | |
source .venv/bin/activate | |
python -m ruff check . | |
test: | |
name: test | |
runs-on: ubuntu-latest | |
needs: lint | |
strategy: | |
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: test | |
run: | | |
source .venv/bin/activate | |
docker-compose up -d | |
python -m pytest . |