Repository navigation
81 lines (77 loc) · 3 KB
/
Copy pathtests.yml
File metadata and controls
81 lines (77 loc) · 3 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
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Tests
on:
push:
branches: [main, master]
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.11", "3.12", "3.13", "3.14"]
dependencies: [current]
include:
- os: ubuntu-latest
python-version: "3.11"
dependencies: minimum
- os: macos-latest
python-version: "3.12"
dependencies: current
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e ".[test]"
- name: Install minimum supported pandas, tqdm and platformdirs
if: matrix.dependencies == 'minimum'
run: python -m pip install "pandas==3.0.0" "tqdm==4.64.0" "platformdirs==3.0.0"
- name: Lint with ruff
run: |
./lint.sh
- name: Check installation
run: |
python -m pip check
python -c "import datacache, pandas; print('datacache', datacache.__version__, 'pandas', pandas.__version__)"
- name: Run unit tests
run: |
./test.sh
- name: Run offline public API example
run: |
python -m examples.basic_usage
python -m examples.versioned_datasets
python -m examples.reference_dna_materialization
- name: Publish coverage to Coveralls
# Coverage upload is best-effort: parallel matrix jobs race to post to
# the same Coveralls build, and the loser gets a "build already closed"
# error. Don't let that flake fail the whole test run.
continue-on-error: true
uses: coverallsapp/github-action@v2.2.3
archive-windows:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12"]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install package and test dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e ".[test]"
- name: Test cross-platform stores and download byte limits
run: python -m pytest -q tests/test_archives.py tests/test_byte_limits.py tests/test_cross_platform_stores.py tests/test_bundle_lifecycle.py tests/test_zip_members.py tests/test_http_representation.py tests/test_database_publication.py tests/test_source_identity.py