Skip to content

docs: add code of conduct document #255

docs: add code of conduct document

docs: add code of conduct document #255

Workflow file for this run

name: Test And Codecov
on:
- push
- pull_request
jobs:
tests-codecov:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
python-version:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
steps:
- name: Checkout
uses: actions/checkout@v4.2.2
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5.3.0
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
pip install -r tests/test-requirements.txt -r requirements.txt
- name: Run tests and generate coverage report (ubuntu/macos)
if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' }}
run: PYTHONPATH=. pytest --cov ./automatic_warehouse --cov-report=xml --config-file='tests/pytest.ini'
- name: Run tests and generate coverage report (windows)
if: ${{ matrix.os == 'windows-latest'}}
run: |
$env:PYTHONPATH=Get-Location
pytest --cov ./automatic_warehouse --cov-report=xml --config-file='tests/pytest.ini'
- name: Upload coverage to Codecov
if: github.actor != 'dependabot[bot]'
uses: codecov/codecov-action@v4.4.1
with:
directory: .
env_vars: OS,PYTHON
fail_ci_if_error: true
files: ./coverage-service.xml,!./cache
flags: unittests-${{ matrix.os }}-py${{ matrix.python-version }}
name: codecov-umbrella
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true