mirror of
				https://github.com/devine-dl/pywidevine.git
				synced 2025-11-04 03:44:50 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			45 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			45 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
name: ci
 | 
						|
 | 
						|
on:
 | 
						|
  push:
 | 
						|
    branches: [ master ]
 | 
						|
  pull_request:
 | 
						|
    branches: [ master ]
 | 
						|
 | 
						|
jobs:
 | 
						|
  lint:
 | 
						|
    runs-on: ubuntu-latest
 | 
						|
    steps:
 | 
						|
      - uses: actions/checkout@v5
 | 
						|
      - name: Set up Python
 | 
						|
        uses: actions/setup-python@v6
 | 
						|
        with:
 | 
						|
          python-version: "3.14"
 | 
						|
      - name: Install poetry
 | 
						|
        uses: abatilo/actions-poetry@v3
 | 
						|
        with:
 | 
						|
          poetry-version: 2.1.3
 | 
						|
      - name: Install project
 | 
						|
        run: poetry install --all-extras
 | 
						|
      - name: Run pre-commit which does various checks
 | 
						|
        run: poetry run pre-commit run --all-files --show-diff-on-failure
 | 
						|
  build:
 | 
						|
    runs-on: ubuntu-latest
 | 
						|
    strategy:
 | 
						|
      matrix:
 | 
						|
        python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
 | 
						|
    steps:
 | 
						|
    - uses: actions/checkout@v5
 | 
						|
    - name: Set up Python ${{ matrix.python-version }}
 | 
						|
      uses: actions/setup-python@v6
 | 
						|
      with:
 | 
						|
        python-version: ${{ matrix.python-version }}
 | 
						|
    - name: Install poetry
 | 
						|
      uses: abatilo/actions-poetry@v3
 | 
						|
      with:
 | 
						|
        poetry-version: 2.1.3
 | 
						|
    - name: Install project
 | 
						|
      run: poetry install --all-extras --only main
 | 
						|
    - name: Build project
 | 
						|
      run: poetry build
 |