forked from JackLilhammers/pyside6-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add github actions and other CI files
- Loading branch information
Showing
9 changed files
with
146 additions
and
10 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
# Set update schedule for GitHub Actions | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
target-branch: main | ||
directory: "/" | ||
open-pull-requests-limit: 10 | ||
schedule: | ||
interval: "monthly" | ||
labels: | ||
- "dependencies" | ||
- "skip-changelog" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
name: Update dependencies | ||
# Dependabot does not recognise PDM so we use the PDM version | ||
|
||
on: | ||
# schedule: | ||
# - cron: "0 0 1 * *" # monthly | ||
workflow_dispatch: | ||
|
||
jobs: | ||
update-dependencies: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Update dependencies | ||
uses: pdm-project/update-deps-action@main |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
--- | ||
name: test | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
concurrency: | ||
group: test-${{ github.head_ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
PYTHONUNBUFFERED: "1" | ||
FORCE_COLOR: "1" | ||
QT_SELECT: "qt6" | ||
QT_QPA_PLATFORM: "offscreen" | ||
|
||
jobs: | ||
run: | ||
name: > | ||
Python ${{ matrix.python-version }} on | ||
${{ | ||
startsWith(matrix.os, 'macos-') && 'macOS' | ||
|| startsWith(matrix.os, 'windows-') && 'Windows' | ||
|| 'Linux' | ||
}} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
# os: [ubuntu-latest, windows-latest, macos-latest] | ||
python-version: ["3.12"] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Set up ${{ matrix.os }} | ||
run: | | ||
sudo apt-get update; sudo apt-get install qt6-base-dev qt6-tools-dev qt6-tools-dev-tools qt6-wayland qt6-l10n-tools | ||
qtchooser -install qt6 $(which qmake6) | ||
- name: Setup PDM | ||
uses: pdm-project/setup-pdm@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: true | ||
|
||
- name: Install dependencies | ||
run: pdm install | ||
|
||
- name: Run lints # These benefit from the autogenerated files | ||
run: pdm run mypy | ||
|
||
- name: Run tests | ||
run: pdm run cov | ||
|
||
- name: Upload coverage reports to Codecov | ||
uses: codecov/codecov-action@v3 | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
with: | ||
file: ./dist/cov/coverage.xml | ||
name: ${{ runner.os }}-${{ matrix.python-version }} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
version: 2 | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.12" | ||
# apt_packages: # Keep in sync with Dockerfile | ||
# - qt6-base-dev | ||
# - qt6-tools-dev | ||
# - qt6-tools-dev-tools | ||
# - qt6-wayland | ||
# - qt6-l10n-toolslibclang | ||
jobs: | ||
post_create_environment: | ||
- pip install pdm | ||
post_install: | ||
- pdm use -f $READTHEDOCS_VIRTUALENV_PATH | ||
- pdm install | ||
|
||
sphinx: | ||
configuration: docs/conf.py | ||
fail_on_warning: false # false until we want to have it install all deps and build |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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