Skip to content

[pre-commit.ci] pre-commit autoupdate #1007

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #1007

Workflow file for this run

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.7
- 3.8
- 3.9
- '3.10'
- '3.11'
steps:
- name: Set up environment
uses: actions/checkout@v3
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@v4
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@v3
with:
file: ./coverage.xml
flags: unittests
# name: codecov-umbrella
# yml: ./codecov.yml
fail_ci_if_error: false