-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Special-case Alt Linux in tests (#88)
* Run tests on ALT Linux via GitHub Actions * Split asyncio test into altlinux and the rest. * Lint * De-duplicate code in test_import_tools.py
- Loading branch information
1 parent
174bcc0
commit 8ddf718
Showing
18 changed files
with
352 additions
and
11 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,65 @@ | ||
# This file is managed by 'repo_helper'. Don't edit it directly. | ||
--- | ||
name: ALT Linux | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- 'repo-helper-update' | ||
- 'pre-commit-ci-update-config' | ||
- 'imgbot' | ||
tags: | ||
- '*' | ||
pull_request: | ||
|
||
permissions: | ||
actions: write | ||
issues: write | ||
contents: read | ||
|
||
jobs: | ||
tests: | ||
name: "alt-linux / Python ${{ matrix.config.python-version }}" | ||
runs-on: "ubuntu-20.04" | ||
container: | ||
image: ghcr.io/domdfcoding/alt-linux-python:latest | ||
continue-on-error: ${{ matrix.config.experimental }} | ||
env: | ||
USING_COVERAGE: '3.10' | ||
|
||
strategy: | ||
fail-fast: False | ||
matrix: | ||
config: | ||
- {python-version: "3.10", testenvs: "py310,build", experimental: False} | ||
|
||
steps: | ||
- name: Checkout 🛎️ | ||
uses: "actions/checkout@v3" | ||
|
||
- name: "Configure" | ||
run: git config --global --add safe.directory /__w/${{ github.event.repository.name }}/${{ github.event.repository.name }} | ||
|
||
- name: Check for changed files | ||
if: startsWith(github.ref, 'refs/tags/') != true | ||
uses: dorny/paths-filter@v2 | ||
id: changes | ||
with: | ||
list-files: "json" | ||
filters: | | ||
code: | ||
- '!(doc-source/**|CONTRIBUTING.rst|.imgbotconfig|.pre-commit-config.yaml|.pylintrc|.readthedocs.yml)' | ||
- name: Install dependencies 🔧 | ||
id: setup-python | ||
if: ${{ steps.changes.outputs.code == 'true' || steps.changes.outcome == 'skipped' }} | ||
run: | | ||
python3 -VV | ||
python3 -m site | ||
python3 -m pip install --upgrade pip setuptools wheel | ||
python3 -m pip install --upgrade tox virtualenv!=20.16.0 | ||
python3 -m pip install --upgrade coverage_pyver_pragma | ||
- name: "Run Tests for Python ${{ matrix.config.python-version }}" | ||
if: steps.setup-python.outcome == 'success' | ||
run: python3 -m tox -e "${{ matrix.config.testenvs }}" -s false |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
29 changes: 29 additions & 0 deletions
29
tests/test_import_tools_/test_iter_submodules_asyncio_altlinux_3_10_.yml
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 @@ | ||
- asyncio | ||
- asyncio.__main__ | ||
- asyncio.base_events | ||
- asyncio.base_futures | ||
- asyncio.base_subprocess | ||
- asyncio.base_tasks | ||
- asyncio.constants | ||
- asyncio.coroutines | ||
- asyncio.events | ||
- asyncio.exceptions | ||
- asyncio.format_helpers | ||
- asyncio.futures | ||
- asyncio.locks | ||
- asyncio.log | ||
- asyncio.mixins | ||
- asyncio.proactor_events | ||
- asyncio.protocols | ||
- asyncio.queues | ||
- asyncio.runners | ||
- asyncio.selector_events | ||
- asyncio.sslproto | ||
- asyncio.staggered | ||
- asyncio.streams | ||
- asyncio.subprocess | ||
- asyncio.tasks | ||
- asyncio.threads | ||
- asyncio.transports | ||
- asyncio.trsock | ||
- asyncio.unix_events |
23 changes: 23 additions & 0 deletions
23
tests/test_import_tools_/test_iter_submodules_asyncio_altlinux_3_6_.yml
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,23 @@ | ||
- asyncio | ||
- asyncio.base_events | ||
- asyncio.base_futures | ||
- asyncio.base_subprocess | ||
- asyncio.base_tasks | ||
- asyncio.compat | ||
- asyncio.constants | ||
- asyncio.coroutines | ||
- asyncio.events | ||
- asyncio.futures | ||
- asyncio.locks | ||
- asyncio.log | ||
- asyncio.proactor_events | ||
- asyncio.protocols | ||
- asyncio.queues | ||
- asyncio.selector_events | ||
- asyncio.sslproto | ||
- asyncio.streams | ||
- asyncio.subprocess | ||
- asyncio.tasks | ||
- asyncio.test_utils | ||
- asyncio.transports | ||
- asyncio.unix_events |
23 changes: 23 additions & 0 deletions
23
tests/test_import_tools_/test_iter_submodules_asyncio_altlinux_3_7_.yml
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,23 @@ | ||
- asyncio | ||
- asyncio.base_events | ||
- asyncio.base_futures | ||
- asyncio.base_subprocess | ||
- asyncio.base_tasks | ||
- asyncio.constants | ||
- asyncio.coroutines | ||
- asyncio.events | ||
- asyncio.format_helpers | ||
- asyncio.futures | ||
- asyncio.locks | ||
- asyncio.log | ||
- asyncio.proactor_events | ||
- asyncio.protocols | ||
- asyncio.queues | ||
- asyncio.runners | ||
- asyncio.selector_events | ||
- asyncio.sslproto | ||
- asyncio.streams | ||
- asyncio.subprocess | ||
- asyncio.tasks | ||
- asyncio.transports | ||
- asyncio.unix_events |
25 changes: 25 additions & 0 deletions
25
tests/test_import_tools_/test_iter_submodules_asyncio_altlinux_3_7_pypy_.yml
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,25 @@ | ||
- asyncio | ||
- asyncio.base_events | ||
- asyncio.base_futures | ||
- asyncio.base_subprocess | ||
- asyncio.base_tasks | ||
- asyncio.compat | ||
- asyncio.constants | ||
- asyncio.coroutines | ||
- asyncio.events | ||
- asyncio.format_helpers | ||
- asyncio.futures | ||
- asyncio.locks | ||
- asyncio.log | ||
- asyncio.proactor_events | ||
- asyncio.protocols | ||
- asyncio.queues | ||
- asyncio.runners | ||
- asyncio.selector_events | ||
- asyncio.sslproto | ||
- asyncio.streams | ||
- asyncio.subprocess | ||
- asyncio.tasks | ||
- asyncio.test_utils | ||
- asyncio.transports | ||
- asyncio.unix_events |
27 changes: 27 additions & 0 deletions
27
tests/test_import_tools_/test_iter_submodules_asyncio_altlinux_3_8_.yml
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,27 @@ | ||
- asyncio | ||
- asyncio.__main__ | ||
- asyncio.base_events | ||
- asyncio.base_futures | ||
- asyncio.base_subprocess | ||
- asyncio.base_tasks | ||
- asyncio.constants | ||
- asyncio.coroutines | ||
- asyncio.events | ||
- asyncio.exceptions | ||
- asyncio.format_helpers | ||
- asyncio.futures | ||
- asyncio.locks | ||
- asyncio.log | ||
- asyncio.proactor_events | ||
- asyncio.protocols | ||
- asyncio.queues | ||
- asyncio.runners | ||
- asyncio.selector_events | ||
- asyncio.sslproto | ||
- asyncio.staggered | ||
- asyncio.streams | ||
- asyncio.subprocess | ||
- asyncio.tasks | ||
- asyncio.transports | ||
- asyncio.trsock | ||
- asyncio.unix_events |
29 changes: 29 additions & 0 deletions
29
tests/test_import_tools_/test_iter_submodules_asyncio_altlinux_3_8_pypy_.yml
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 @@ | ||
- asyncio | ||
- asyncio.__main__ | ||
- asyncio.base_events | ||
- asyncio.base_futures | ||
- asyncio.base_subprocess | ||
- asyncio.base_tasks | ||
- asyncio.compat | ||
- asyncio.constants | ||
- asyncio.coroutines | ||
- asyncio.events | ||
- asyncio.exceptions | ||
- asyncio.format_helpers | ||
- asyncio.futures | ||
- asyncio.locks | ||
- asyncio.log | ||
- asyncio.proactor_events | ||
- asyncio.protocols | ||
- asyncio.queues | ||
- asyncio.runners | ||
- asyncio.selector_events | ||
- asyncio.sslproto | ||
- asyncio.staggered | ||
- asyncio.streams | ||
- asyncio.subprocess | ||
- asyncio.tasks | ||
- asyncio.test_utils | ||
- asyncio.transports | ||
- asyncio.trsock | ||
- asyncio.unix_events |
28 changes: 28 additions & 0 deletions
28
tests/test_import_tools_/test_iter_submodules_asyncio_altlinux_3_9_.yml
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,28 @@ | ||
- asyncio | ||
- asyncio.__main__ | ||
- asyncio.base_events | ||
- asyncio.base_futures | ||
- asyncio.base_subprocess | ||
- asyncio.base_tasks | ||
- asyncio.constants | ||
- asyncio.coroutines | ||
- asyncio.events | ||
- asyncio.exceptions | ||
- asyncio.format_helpers | ||
- asyncio.futures | ||
- asyncio.locks | ||
- asyncio.log | ||
- asyncio.proactor_events | ||
- asyncio.protocols | ||
- asyncio.queues | ||
- asyncio.runners | ||
- asyncio.selector_events | ||
- asyncio.sslproto | ||
- asyncio.staggered | ||
- asyncio.streams | ||
- asyncio.subprocess | ||
- asyncio.tasks | ||
- asyncio.threads | ||
- asyncio.transports | ||
- asyncio.trsock | ||
- asyncio.unix_events |
30 changes: 30 additions & 0 deletions
30
tests/test_import_tools_/test_iter_submodules_asyncio_altlinux_3_9_pypy_.yml
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,30 @@ | ||
- asyncio | ||
- asyncio.__main__ | ||
- asyncio.base_events | ||
- asyncio.base_futures | ||
- asyncio.base_subprocess | ||
- asyncio.base_tasks | ||
- asyncio.compat | ||
- asyncio.constants | ||
- asyncio.coroutines | ||
- asyncio.events | ||
- asyncio.exceptions | ||
- asyncio.format_helpers | ||
- asyncio.futures | ||
- asyncio.locks | ||
- asyncio.log | ||
- asyncio.proactor_events | ||
- asyncio.protocols | ||
- asyncio.queues | ||
- asyncio.runners | ||
- asyncio.selector_events | ||
- asyncio.sslproto | ||
- asyncio.staggered | ||
- asyncio.streams | ||
- asyncio.subprocess | ||
- asyncio.tasks | ||
- asyncio.test_utils | ||
- asyncio.threads | ||
- asyncio.transports | ||
- asyncio.trsock | ||
- asyncio.unix_events |