add Gitea actions workflow for Python tests
Some checks failed
Python tests / tests (push) Failing after 23m33s
Some checks failed
Python tests / tests (push) Failing after 23m33s
This commit is contained in:
29
.gitea/workflows/python-tests.yml
Normal file
29
.gitea/workflows/python-tests.yml
Normal file
@@ -0,0 +1,29 @@
|
||||
name: Python tests
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "*"
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.12"
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
||||
|
||||
- name: Run pytest
|
||||
run: |
|
||||
python -m pytest
|
||||
Reference in New Issue
Block a user