name: CI on: push: branches: [main, develop] pull_request: branches: [main, develop] jobs: lint: name: Lint runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: '3.11' - name: Install dependencies run: | python -m pip install --upgrade pip pip install black ruff mypy types-requests - name: Run Black run: black --check . - name: Run Ruff run: ruff check . - name: Run MyPy run: mypy tcga_downloader test: name: Test runs-on: ubuntu-latest strategy: matrix: python-version: ['3.11', '3.12'] steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | python -m pip install --upgrade pip pip install -e ".[dev]" - name: Run tests run: pytest --cov=tcga_downloader --cov-report=xml --cov-report=term - name: Upload coverage uses: codecov/codecov-action@v4 if: matrix.python-version == '3.11' with: files: ./coverage.xml