Merge pull request #99 from beeware/autoupdates/pre-commit/black #292
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
workflow_call: | |
outputs: | |
artifact-name: | |
description: "Name of the uploaded artifact; use for artifact retrieval." | |
value: ${{ jobs.package.outputs.artifact-name }} | |
jobs: | |
pre-commit: | |
name: Pre-commit checks | |
uses: beeware/.github/.github/workflows/pre-commit-run.yml@main | |
towncrier: | |
name: Check towncrier | |
uses: beeware/.github/.github/workflows/towncrier-run.yml@main | |
package: | |
name: Python Package | |
uses: beeware/.github/.github/workflows/python-package-create.yml@main | |
unit-tests: | |
name: Python compatibility test | |
needs: [pre-commit, towncrier, package] | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["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] | |
with: | |
fetch-depth: 0 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/[email protected] | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Get packages | |
uses: actions/[email protected] | |
with: | |
name: ${{ needs.package.outputs.artifact-name }} | |
path: dist | |
- name: Install dev dependencies | |
run: | | |
# We don't actually want to install travertino; | |
# we just want the dev extras so we have a known version of tox. | |
python -m pip install $(ls dist/travertino-*.whl)[dev] | |
- name: Test | |
run: | | |
tox -e py --installpkg dist/travertino-*.whl |