forked from cogent3/ensembldb3
-
Notifications
You must be signed in to change notification settings - Fork 18
160 lines (133 loc) · 5.17 KB
/
Copy pathtesting_develop.yml
File metadata and controls
160 lines (133 loc) · 5.17 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
name: CI
on:
push:
branches-ignore:
- master
pull_request:
branches-ignore:
- master
jobs:
ci-not-internet:
name: "Python ${{ matrix.python-version }} (${{ matrix.os }})"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.11", "3.13"]
steps:
- uses: "actions/checkout@v4"
with:
fetch-depth: 0
- name: Set up small cache
id: cache-small-data
uses: actions/cache@v3
with:
path: tests/data
key: ${{ runner.os }}-small-v3-${{ hashFiles('tests/data/small-115.zip') }}
restore-keys: |
${{ runner.os }}-small-v3-
- name: Check cache status
run: |
echo "Cache hit: ${{ steps.cache-small-data.outputs.cache-hit }} ***"
- name: Download small data file
if: steps.cache-small-data.outputs.cache-hit != 'true'
run: |
curl -L -o tests/data/small-115.zip "https://www.dropbox.com/scl/fi/cknsuhd6k8t6fjn1odzog/small-115.zip?rlkey=zkacmbhx4ssf4v80d78dd9uql&dl=1"
- name: Set up apes installed cache
id: cache-apes-data
uses: actions/cache@v3
with:
path: tests/data
key: ${{ runner.os }}-apes-v3-${{ hashFiles('tests/data/apes-115.zip') }}
restore-keys: |
${{ runner.os }}-apes-v3-
- name: Check apes data cache status
run: |
echo "Cache hit: ${{ steps.cache-apes-data.outputs.cache-hit }} ***"
- name: Download apes installation data file
if: steps.cache-apes-data.outputs.cache-hit != 'true'
run: |
curl -L -o tests/data/apes-115.zip "https://www.dropbox.com/scl/fi/h6kd0rlntvyzcb6d485fa/apes-115.zip?rlkey=4hza000j7btue6qwnxvnid5gb&dl=1"
- name: Set up apes maf cache
id: cache-apes-data-maf
uses: actions/cache@v3
with:
path: tests/data
key: ${{ runner.os }}-apes-maf-v3-${{ hashFiles('tests/data/apes-115-maf.zip') }}
restore-keys: |
${{ runner.os }}-apes-maf-v3-
- name: Check apes maf cache status
run: |
echo "Cache hit: ${{ steps.cache-apes-data-maf.outputs.cache-hit }} ***"
- name: Download apes maf data file
if: steps.cache-apes-data-maf.outputs.cache-hit != 'true'
run: |
curl -L -o tests/data/apes-115-maf.zip "https://www.dropbox.com/scl/fi/2wmle5kzjdqralppvddsr/apes-115-maf.zip?rlkey=u1hbfo0jqwhfkfukntgx5tbfn&dl=1"
- name: Unzip data files
run: |
cd tests/data
unzip -o -q small-115.zip
unzip -o -q apes-115.zip
unzip -o -q apes-115-maf.zip
- uses: "actions/setup-python@v5"
with:
python-version: "${{ matrix.python-version }}"
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
cache-dependency-glob: "pyproject.toml"
- name: "Installs for ${{ matrix.python-version }}"
run: |
uv venv venv -p python${{ matrix.python-version }}
uv tool install -p venv nox
- name: "Run nox for ${{ matrix.python-version }}"
run: |
nox -db uv --force-python python -s test -- -m 'not internet' --durations=10 --cov-report lcov:lcov-${{matrix.os}}-${{matrix.python-version}}.lcov --cov-report term --cov-append --cov ensembl_tui
- name: Coveralls Parallel
uses: coverallsapp/github-action@v2
with:
parallel: true
github-token: ${{ secrets.github_token }}
flag-name: run-${{matrix.python-version}}-${{matrix.os}}
file: "tests/lcov-${{matrix.os}}-${{matrix.python-version}}.lcov"
ci-internet:
name: "Python ${{ matrix.python-version }} (${{ matrix.os }})"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.13"]
steps:
- uses: "actions/checkout@v4"
with:
fetch-depth: 0
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: "pyproject.toml"
- name: "Installs for ${{ matrix.python-version }}"
run: |
uv venv venv -p python${{ matrix.python-version }}
uv tool install -p venv nox
- name: "Run nox for ${{ matrix.python-version }}"
run: |
nox -db uv -s test-${{ matrix.python-version }} -- -m 'internet' --durations=10 --cov-report lcov:lcov-${{matrix.os}}-${{matrix.python-version}}-internet.lcov --cov-report term --cov-append --cov ensembl_tui
- name: Coveralls Parallel
uses: coverallsapp/github-action@v2
with:
parallel: true
github-token: ${{ secrets.github_token }}
flag-name: run-${{matrix.python-version}}-${{matrix.os}}
file: "tests/lcov-${{matrix.os}}-${{matrix.python-version}}-internet.lcov"
finish:
name: "Finish Coveralls"
needs: [ci-not-internet, ci-internet]
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true