diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a52d91e..c07ace7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,9 +13,9 @@ jobs: python-version: ['3.6', '3.7', '3.8', '3.9', '3.10'] steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Install dependencies diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index cccc30f..30a126c 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -7,16 +7,13 @@ on: jobs: build: runs-on: ubuntu-latest - strategy: - matrix: - python-version: ['3.10'] steps: - uses: actions/checkout@v1 - - name: Set up Python ${{ matrix.python-version }} + - name: Set up Python uses: actions/setup-python@v2 with: - python-version: ${{ matrix.python-version }} + python-version: '3.10' - name: Install dependencies run: | python -m pip install --upgrade pip @@ -27,6 +24,6 @@ jobs: coverage report -m coverage xml - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v3 with: fail_ci_if_error: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..56b0b13 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,23 @@ +name: Lint + +on: + push: + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.10" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Run linting + run: | + make lint diff --git a/tox.ini b/tox.ini index 12b0265..6734dac 100644 --- a/tox.ini +++ b/tox.ini @@ -13,5 +13,4 @@ python = passenv = TOXENV CI deps = -rrequirements.txt commands = - flake8 pangocairocffi tests --exclude pangocairocffi/_generated/ffi.py coverage run --source pangocairocffi -m pytest -s