Skip to content

fix: xdg base dirs package nane conflict #5

fix: xdg base dirs package nane conflict

fix: xdg base dirs package nane conflict #5

Workflow file for this run

name: Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Linux dependencies
run: |
sudo apt-get update
sudo apt-get install -y libsecret-1-0 libgirepository1.0-dev
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install build
# Install test dependencies first
pip install pytest pytest-asyncio pytest-cov pytest-mock
# Install package dependencies individually to handle platform-specific issues
pip install -e .
- name: Run tests with coverage
run: |
pytest -v --cov=ticked --cov-report=xml --cov-report=term
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: ./coverage.xml
fail_ci_if_error: true