Skip to content

Commit d860126

Browse files
committed
#134: use ubuntu 20.04 for supporting python 3.6 and 3.7 as test legacy
1 parent 2207224 commit d860126

File tree

1 file changed

+45
-2
lines changed

1 file changed

+45
-2
lines changed

.github/workflows/ci.yml

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,55 @@ jobs:
2626
- name: Ruff format check
2727
run: ruff format --check webdav3/ tests/
2828

29+
test-legacy:
30+
name: test (legacy)
31+
runs-on: ubuntu-20.04
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
python-version: ["3.6", "3.7"]
36+
37+
steps:
38+
- uses: actions/checkout@v4
39+
40+
- name: Set up Python
41+
uses: actions/setup-python@v5
42+
with:
43+
python-version: ${{ matrix.python-version }}
44+
cache: "pip"
45+
46+
- name: Install dependencies
47+
run: |
48+
pip install -e ".[test]"
49+
50+
- name: Start WebDAV container
51+
run: |
52+
docker run -d --name webdav \
53+
-e AUTH_TYPE=Basic -e USERNAME=alice -e PASSWORD=secret1234 \
54+
-v ${{ github.workspace }}/conf:/usr/local/apache2/conf \
55+
-p 8585:80 \
56+
bytemark/webdav
57+
docker ps -a
58+
sleep 3
59+
docker logs --tail 20 webdav
60+
61+
- name: Run tests with coverage
62+
run: |
63+
coverage run -m pytest tests/ -v
64+
coverage xml
65+
66+
- name: Upload coverage artifact
67+
uses: actions/upload-artifact@v4
68+
with:
69+
name: coverage-${{ matrix.python-version }}
70+
path: coverage.xml
71+
2972
test:
30-
runs-on: ubuntu-latest
73+
runs-on: ubuntu-24.04
3174
strategy:
3275
fail-fast: false
3376
matrix:
34-
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
77+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
3578

3679
steps:
3780
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)