This repository has been archived by the owner on Sep 13, 2024. It is now read-only.
Updated test suite to remove use of generators as co-routines. #171
Workflow file for this run
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 | |
env: | |
min_python_version: "3.9" | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
with: | |
python-version: ${{ env.min_python_version }} | |
- uses: pre-commit/[email protected] | |
towncrier: | |
runs-on: ubuntu-latest | |
steps: | |
# Fetch main branch for comparison, then check out current branch. | |
- uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
ref: main | |
- uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Set up Python 3.X | |
uses: actions/[email protected] | |
with: | |
python-version: "3.X" | |
- name: Install dependencies | |
run: | | |
pip install tox | |
- name: Run Towncrier | |
run: | | |
tox -e towncrier-check | |
package: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Set up Python 3.X | |
uses: actions/[email protected] | |
with: | |
python-version: "3.X" | |
- name: Install dependencies | |
run: | | |
pip install tox | |
- name: Run pre-test check | |
run: | | |
tox -e package | |
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: | |
- uses: actions/[email protected] | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/[email protected] | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
sudo apt-get install -y python3-dev python3-gi gir1.2-gtk-3.0 libgirepository1.0-dev pkg-config | |
pip install tox | |
- name: Test | |
run: | | |
tox -e py |