Skip to content

Add windows to the test matrix #31

Add windows to the test matrix

Add windows to the test matrix #31

Workflow file for this run

name: CI
on:
push:
branches:
- main
tags:
- "*"
pull_request:
jobs:
static-checks-and-tests:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
run: pip install uv
- name: Install dependencies
run: |
uv pip install -r pylock.toml --system --no-progress
uv pip install -e . --system --no-progress
- name: Run linting
run: ruff format src/githublfs tests --check
- name: Run type checking
run: mypy src/githublfs --install-types --non-interactive --ignore-missing-imports
- name: Run tests
run: pytest -q
push-to-pypi:
needs:
- static-checks-and-tests
if: github.ref_type == 'tag'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.12.0
- name: Install uv
run: pip install uv
- name: Build
run: uv build
- name: check
run: uv run twine check dist/*
- name: push to pypi
run: uv run twine upload dist/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TWINE_TOKEN }}