This commit is contained in:
@@ -1,27 +1,20 @@
|
|||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
on:
|
on: [push, pull_request]
|
||||||
push:
|
|
||||||
branches: [main]
|
|
||||||
pull_request:
|
|
||||||
branches: [main]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- run: |
|
- name: Checkout
|
||||||
git clone --depth 1 https://github.com/${{ gitea.repository }}.git .
|
uses: actions/checkout@v3
|
||||||
git fetch origin 'refs/heads/main':refs/heads/main
|
- name: Setup Python
|
||||||
|
uses: actions/setup-python@v4
|
||||||
- name: Set up Python
|
with:
|
||||||
|
python-version: '3.10'
|
||||||
|
- name: Install
|
||||||
run: |
|
run: |
|
||||||
apt-get update && apt-get install -y python3 python3-pip
|
pip install -e .
|
||||||
|
pip install pytest
|
||||||
- name: Install dependencies
|
- name: Test
|
||||||
run: |
|
run: pytest confsync/tests/ -v
|
||||||
pip3 install -e .
|
|
||||||
pip3 install pytest pytest-cov
|
|
||||||
|
|
||||||
- name: Run tests
|
|
||||||
run: pytest confsync/tests/ -v --tb=short
|
|
||||||
|
|||||||
Reference in New Issue
Block a user