Add user verification functionality for admins #96
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: | |
name: pytest, ruff, mypy | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
#---------------------------------------------- | |
# check-out repo and set-up python | |
#---------------------------------------------- | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Set up python | |
id: setup-python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
#---------------------------------------------- | |
# ----- Set up .env ----- | |
#---------------------------------------------- | |
- name: Set up .env | |
run: | | |
cp .env.sample .env | |
echo "PLANTY_AUTH_SECRET=TEST_SECRET" >> .env | |
#---------------------------------------------- | |
# ----- install uv ----- | |
#---------------------------------------------- | |
- name: Install uv | |
uses: astral-sh/setup-uv@v5 | |
with: | |
version: "0.5.13" | |
#---------------------------------------------- | |
# install dependencies | |
#---------------------------------------------- | |
- name: Install dependencies | |
run: uv sync --all-extras --dev | |
#---------------------------------------------- | |
# run test suite | |
#---------------------------------------------- | |
- name: Run ruff | |
run: | | |
uv run ruff format --check | |
uv run ruff check | |
- name: Run pytest | |
run: | | |
uv run pytest --cov | |
- name: Run mypy | |
run: | | |
uv run mypy planty |