26 lines
509 B
YAML
26 lines
509 B
YAML
name: CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
run: |
|
|
echo "Gitea Actions automatically checks out code"
|
|
ls -la
|
|
|
|
- name: Set up Python
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
python --version
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
pip install -r requirements.txt
|
|
pip install pytest
|
|
|
|
- name: Run tests
|
|
run: |
|
|
pytest tests/ -v |