generated from mononoki/pyproj
Initial commit
This commit is contained in:
50
.gitea/workflows/test.yml
Normal file
50
.gitea/workflows/test.yml
Normal file
@@ -0,0 +1,50 @@
|
||||
name: Tests
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
pytest:
|
||||
|
||||
# Имя твоего Gitea Runner.
|
||||
# У тебя уже используется docker-amd64 в build.yml.
|
||||
runs-on: docker-amd64
|
||||
|
||||
steps:
|
||||
|
||||
# -------------------------
|
||||
# Checkout repository
|
||||
# -------------------------
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
|
||||
# -------------------------
|
||||
# Python
|
||||
# -------------------------
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version-file: ".py-version"
|
||||
|
||||
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install -r req.txt
|
||||
python -m pip install -r req-dev.txt
|
||||
|
||||
|
||||
# -------------------------
|
||||
# Tests
|
||||
# -------------------------
|
||||
|
||||
- name: Run tests
|
||||
run: |
|
||||
python -m pytest
|
||||
Reference in New Issue
Block a user