20 lines
553 B
YAML
20 lines
553 B
YAML
name: CI
|
|
on: [push, pull_request]
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Clone repository
|
|
run: |
|
|
git clone https://git::${{ secrets.GITEA_TOKEN }}@7000pct.gitea.bloupla.net/7000pctAUTO/confsync.git /tmp/confsync
|
|
cp -r /tmp/confsync/* .
|
|
- name: Setup Python
|
|
run: |
|
|
apt-get update && apt-get install -y python3 python3-pip
|
|
- name: Install dependencies
|
|
run: |
|
|
pip install -e .
|
|
pip install pytest
|
|
- name: Run tests
|
|
run: pytest -v
|