chore: add tests workflow
All checks were successful
Run tests / test-project (push) Successful in 1m19s
All checks were successful
Run tests / test-project (push) Successful in 1m19s
This commit is contained in:
23
.gitea/workflows/run-tests.yaml
Normal file
23
.gitea/workflows/run-tests.yaml
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
name: Run tests
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test-project:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: actions/checkout@v5
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: '3.x'
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install -r requirements.txt
|
||||||
|
- name: Run tests
|
||||||
|
run: |
|
||||||
|
pip install pytest
|
||||||
|
pytest
|
||||||
|
|
Reference in New Issue
Block a user