name: Tests on: push: branches: ["main", "master"] pull_request: jobs: test: runs-on: ubuntu-latest strategy: fail-fast: false matrix: python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] steps: - name: Check out repository uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install package run: python -m pip install -e . - name: Compile Python files run: python -m py_compile main.py chatgpt_share_exporter.py chatgpt_pdf_converter.py tests/test_exporter.py tests/test_pdf_converter.py - name: Run tests run: python -m unittest discover -s tests