-
Notifications
You must be signed in to change notification settings - Fork 10
57 lines (51 loc) · 1.31 KB
/
test-nonetwork.yml
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
name: Test without network
on:
push:
pull_request:
schedule:
- cron: '0 6 * * *'
jobs:
test:
runs-on: ${{ matrix.os }}
env:
NO_ET: 1
strategy:
fail-fast: false
matrix:
os:
- windows-2019
- ubuntu-latest
- macos-latest
python:
- 3.9
- '3.10'
- '3.11'
- '3.12'
steps:
- name: Set up environment
uses: actions/checkout@v4
with:
# Fetch all commits so that versioningit will return something
# compatible with semantic-version
fetch-depth: 0
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel
python -m pip install --upgrade tox
- name: Run all tests
run: tox -e py -- -s --cov-report=xml
env:
DANDI_TESTS_NONETWORK: 1
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
file: ./coverage.xml
flags: unittests
# name: codecov-umbrella
# yml: ./codecov.yml
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}