-
Notifications
You must be signed in to change notification settings - Fork 35
54 lines (45 loc) · 1.08 KB
/
ci.yaml
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
name: test
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
strategy:
max-parallel: 2
matrix:
transmission: ["version-3.00-r8", "4.0.3"]
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
services:
transmission:
image: linuxserver/transmission:${{ matrix.transmission }}
ports:
- 8080:9091
- 6881:6881
env:
UID: "1000"
TZ: Etc/UTC
USER: admin
PASS: my-secret-password
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- uses: trim21/setup-poetry@dist/v1
- uses: trim21/install-poetry-project@dist/v1
- name: test
run: coverage run -m pytest
env:
TR_PORT: 8080
TR_USER: admin
TR_PASSWORD: my-secret-password
- uses: codecov/codecov-action@v3
with:
flags: "${{ matrix.python }}"