Create LICENSE #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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/" |