init testing
Some checks failed
Python Application Tests / build (3.13) (pull_request) Failing after 53s
Some checks failed
Python Application Tests / build (3.13) (pull_request) Failing after 53s
This commit is contained in:
37
.gitea/workflows/run-tests.yml
Normal file
37
.gitea/workflows/run-tests.yml
Normal file
@@ -0,0 +1,37 @@
|
||||
name: Python Application Tests
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
pull_request:
|
||||
branches: [ "*" ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
python-version: ["3.13"]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
# Install test dependencies
|
||||
pip install pytest pytest-asyncio httpx
|
||||
# Install application dependencies (assuming you have a requirements.txt)
|
||||
# If you don't have one, create it with `pip freeze > requirements.txt`
|
||||
# For now, we'll install the dependencies we know are needed from context
|
||||
pip install fastapi "uvicorn[standard]" paho-mqtt requests
|
||||
|
||||
- name: Test with pytest
|
||||
run: |
|
||||
pytest
|
||||
Reference in New Issue
Block a user