diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml new file mode 100644 index 0000000..a964fa8 --- /dev/null +++ b/.gitea/workflows/test.yaml @@ -0,0 +1,30 @@ +name: Run Tests +on: + push: {} + +env: + RUNNER_TOOL_CACHE: /toolcache + +jobs: + run-tests: + runs-on: python + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + ssh-key: ${{ secrets.SSH_JOHN_PRIVATE_KEY }} + - name: Install poetry + run: | + python3 -m pip install poetry==2.3.4 + - name: Setup Cache + uses: actions/cache@v3 + with: + path: ./.venv + key: ${{ runner.os }}-venv-${{ hashFiles('**/poetry.lock') }} + - name: Install the project dependencies + run: | + python3 -m poetry install + python3 -m poetry env info + - name: Run the automated tests + run: | + python3 -m pytest tests diff --git a/pyproject.toml b/pyproject.toml index 9ebe280..f781d91 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,6 +16,7 @@ dependencies = [ [virtualenvs] in-project = true +create = true [tool.alembic] script_location = "%(here)s/migrations"