Test without network #1828
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |