This is not a commit
This commit is contained in:
@@ -192,5 +192,5 @@ jobs:
|
|||||||
docker images --filter "reference=multiarch/qemu-user-static" -q | xargs -r docker rmi
|
docker images --filter "reference=multiarch/qemu-user-static" -q | xargs -r docker rmi
|
||||||
docker images --filter "reference=tonistiigi/binfmt" -q | xargs -r docker rmi
|
docker images --filter "reference=tonistiigi/binfmt" -q | xargs -r docker rmi
|
||||||
docker volume ls --filter "name=buildx" -q | xargs -r docker volume rm
|
docker volume ls --filter "name=buildx" -q | xargs -r docker volume rm
|
||||||
docker volume ls --filter "name=act" -q | xargs -r docker volume rm
|
|
||||||
docker images --filter "reference=gitea/runner-images" -q | xargs -r docker rmi
|
docker images --filter "reference=gitea/runner-images" -q | xargs -r docker rmi
|
||||||
|
docker volume ls --filter "name=act" -q | xargs -r docker volume rm
|
||||||
|
|||||||
28
.gitea/workflows/test.yaml
Normal file
28
.gitea/workflows/test.yaml
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
name: Test with Pytest
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: '3.11'
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install -r requirements.txt
|
||||||
|
|
||||||
|
- name: Run Tests
|
||||||
|
run: |
|
||||||
|
pytest --maxfail=1 --disable-warnings -v
|
||||||
@@ -19,6 +19,7 @@ class TestConfig(Config):
|
|||||||
|
|
||||||
# Adding LAPTOP_MAC environment variable
|
# Adding LAPTOP_MAC environment variable
|
||||||
os.environ['LAPTOP_MAC'] = '00:00:00:00:00:00'
|
os.environ['LAPTOP_MAC'] = '00:00:00:00:00:00'
|
||||||
|
os.environ['LAPTOP_IP'] = '192.168.0.0'
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def app():
|
def app():
|
||||||
|
|||||||
Reference in New Issue
Block a user