Skip to content

Tests

Tests #2391

Workflow file for this run

name: Tests
on:
push:
pull_request:
schedule:
- cron: '0 6 * * *'
jobs:
test:
runs-on: ${{ matrix.os }}
env:
NO_ET: 1
DATACITE_DEV_PASSWORD: ${{ secrets.DATACITE_DEV_PASSWORD }}
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
- 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 }}