-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (49 loc) · 1.59 KB
/
pages.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Test WebDavClient + Deploy web page
on:
push:
branches: ["main"]
jobs:
build:
name: 🚀 Deploy website on push
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/[email protected]
- name: Set up Python 3.11
uses: actions/[email protected]
with:
python-version: "3.11"
# You can test your matrix by printing the current Python version
- name: Setup python env
run: |
pip install -v -e .
pip install -r requirements.txt
- name: Run tests
run: |
pytest --cov=webdavclient --cov-report=xml --cov-report=term-missing
- name: Upload coverage report
uses: actions/[email protected]
with:
name: coverage-report
path: coverage.xml
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
# If your repository is public, you can omit the token
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml
- name: Build web page
run: |
cd docs
make html
- name: 📂 Sync files to domain
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.SERVER }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
local-dir: "./docs/build/html/"