Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Merge pull request #113 from beeware/dependabot/github_actions/action… #199

Merge pull request #113 from beeware/dependabot/github_actions/action…

Merge pull request #113 from beeware/dependabot/github_actions/action… #199

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
# Cancel active CI runs for a PR before starting another run
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
env:
FORCE_COLOR: "1"
jobs:
pre-commit:
name: Pre-commit checks
uses: beeware/.github/.github/workflows/pre-commit-run.yml@main
with:
pre-commit-source: "pre-commit"
towncrier:
name: Check towncrier
uses: beeware/.github/.github/workflows/towncrier-run.yml@main
with:
tox-source: "tox"
package:
name: Python Package
uses: beeware/.github/.github/workflows/python-package-create.yml@main
with:
tox-source: "tox"
python-versions:
name: Python compatibility test
needs: [ pre-commit, towncrier, package ]
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11", "3.12-dev" ]
include:
- experimental: false
- python-version: "3.12-dev"
experimental: true
steps:
- name: Checkout
uses: actions/[email protected]
- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: Install system dependencies
run: sudo apt install -y pkg-config python3-dev libgirepository1.0-dev gir1.2-gtk-3.0
- name: Install Tox
run: |
# We don't actually want to install gbulb; we just want the dev extras
# so that we have a known version of coverage
python -m pip install -e .[dev]
- name: Test
run: tox -e py