Added unit tests and continous integration
All checks were successful
backup.py / unit-tests (push) Successful in 23s
All checks were successful
backup.py / unit-tests (push) Successful in 23s
This commit is contained in:
15
.gitea/workflows/backup.py.yml
Normal file
15
.gitea/workflows/backup.py.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
name: backup.py
|
||||
on: [push,pull_request,workflow_dispatch]
|
||||
|
||||
jobs:
|
||||
unit-tests:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install Dependencies
|
||||
run: sudo apt update && sudo apt install -y python3 tar gpg
|
||||
|
||||
- name: Run unit tests
|
||||
run: |
|
||||
python3 test_backup.py backup.py
|
||||
Reference in New Issue
Block a user