parent
a310649507
commit
4f5092481c
1 changed files with 31 additions and 0 deletions
31
.forgejo/workflows/test.yaml
Normal file
31
.forgejo/workflows/test.yaml
Normal file
|
@ -0,0 +1,31 @@
|
|||
on:
|
||||
push:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
verbose:
|
||||
description: "Verbose"
|
||||
required: false
|
||||
default: false
|
||||
type: boolean
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: container
|
||||
container:
|
||||
image: code.philo.ydns.eu/philorg/python-ci
|
||||
volumes:
|
||||
- "uv_cache:/root/.cache/uv"
|
||||
- "ca-cert:/etc/containers/certs.d"
|
||||
steps:
|
||||
- name: Echo env
|
||||
if: ${{ inputs.verbose }}
|
||||
run: |
|
||||
echo '${{ toJSON(env) }}'
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install app with 'uv pip install'
|
||||
run: uv pip install --python=$UV_PROJECT_ENVIRONMENT --no-deps .
|
||||
|
||||
- name: Run tests (API call)
|
||||
run: pytest -s tests/basic.py
|
Loading…
Add table
Add a link
Reference in a new issue