-
Notifications
You must be signed in to change notification settings - Fork 686
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
37 changed files
with
564 additions
and
320 deletions.
There are no files selected for viewing
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
main: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- name: "Test: Python 3.7" | ||
python: "3.7" | ||
tox: py37 | ||
- name: "Test: Python 3.8" | ||
python: "3.8" | ||
tox: py38 | ||
- name: "Test: Python 3.9" | ||
python: "3.9" | ||
tox: py39 | ||
coverage: true | ||
- name: "Lint: check-manifest" | ||
python: "3.9" | ||
tox: check-manifest | ||
- name: "Lint: flake8" | ||
python: "3.9" | ||
tox: flake8 | ||
- name: "Lint: mypy" | ||
python: "3.9" | ||
tox: mypy | ||
- name: "Docs" | ||
python: "3.9" | ||
tox: docs | ||
|
||
name: ${{ matrix.name }} | ||
runs-on: ubuntu-20.04 | ||
container: ghcr.io/mopidy/ci:latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Fix home dir permissions to enable pip caching | ||
run: chown -R root /github/home | ||
- name: Cache pip | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-${{ matrix.python }}-${{ matrix.tox }}-pip-${{ hashFiles('setup.cfg') }}-${{ hashFiles('tox.ini') }} | ||
restore-keys: | | ||
${{ runner.os }}-${{ matrix.python }}-${{ matrix.tox }}-pip- | ||
- run: python -m pip install pygobject tox | ||
- run: python -m tox -e ${{ matrix.tox }} | ||
if: ${{ ! matrix.coverage }} | ||
- run: python -m tox -e ${{ matrix.tox }} -- --cov-report=xml | ||
if: ${{ matrix.coverage }} | ||
- uses: codecov/codecov-action@v1 | ||
if: ${{ matrix.coverage }} |
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,22 @@ | ||
name: "CodeQL" | ||
|
||
on: | ||
push: | ||
branches: [ develop, master ] | ||
pull_request: | ||
branches: [ develop, master ] | ||
schedule: | ||
- cron: '32 4 * * 4' | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze Python | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: github/codeql-action/init@v1 | ||
with: | ||
languages: "python" | ||
- uses: github/codeql-action/autobuild@v1 | ||
- uses: github/codeql-action/analyze@v1 |
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 |
---|---|---|
|
@@ -9,15 +9,15 @@ jobs: | |
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.9' | ||
- name: "Install dependencies" | ||
run: python3 -m pip install build | ||
- name: "Build package" | ||
run: python3 -m build | ||
- uses: pypa/[email protected] | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_TOKEN }} | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.9" | ||
- name: "Install dependencies" | ||
run: python3 -m pip install build | ||
- name: "Build package" | ||
run: python3 -m build | ||
- uses: pypa/[email protected] | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_TOKEN }} |
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,29 @@ | ||
name: "Ubuntu devel" | ||
|
||
on: | ||
schedule: | ||
# Every Friday at 18:20 UTC, so we can fix the issue over the weekend | ||
- cron: "20 18 * * 5" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
main: | ||
name: "Test: Python 3.9" | ||
runs-on: ubuntu-20.04 | ||
|
||
# The container should be automatically updated from time to time. | ||
container: ubuntu:devel | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: | | ||
apt-get update | ||
DEBIAN_FRONTEND=noninteractive apt-get install -y \ | ||
gstreamer1.0-plugins-bad \ | ||
gstreamer1.0-plugins-good \ | ||
gstreamer1.0-plugins-ugly \ | ||
python3-gst-1.0 \ | ||
python3 \ | ||
tox | ||
- run: tox -e py39 |
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
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
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
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
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
Oops, something went wrong.