Skip to content

Commit

Permalink
chore: move tests so only 3.10 is in main tests
Browse files Browse the repository at this point in the history
  • Loading branch information
robcxyz committed Dec 17, 2023
1 parent 057c60d commit bd3b200
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 59 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "codeql"
name: codeql

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: coverage-ci
name: coverage

on:
push:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: documentation-ci
name: docs

on:
push:
branches:
Expand Down
44 changes: 0 additions & 44 deletions .github/workflows/main-windows.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: tests
name: test-all-platforms

on:
push:
Expand All @@ -17,21 +17,13 @@ jobs:
fail-fast: false
matrix:
name:
- "linting"
- "ubuntu-py310"
- "ubuntu-py311"
- "macos-py310"
- "macos-py311"
- "windows-py310"
- "windows-py311"

include:
- name: "linting"
python: "3.10"
os: ubuntu-latest
tox_env: "lint"
- name: "ubuntu-py310"
python: "3.10"
os: ubuntu-latest
tox_env: "py310"
- name: "ubuntu-py311"
python: "3.11"
os: ubuntu-latest
Expand All @@ -44,6 +36,14 @@ jobs:
python: "3.11"
os: macos-latest
tox_env: "py311"
- name: "windows-py310"
python: "3.10"
os: windows-latest
tox_env: "py310"
- name: "windows-py311"
python: "3.11"
os: windows-latest
tox_env: "py311"

steps:
- uses: actions/checkout@v2
Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: test

on:
push:
branches:
- main
tags:
- "*"
pull_request:
branches:
- "*"

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
name:
- "linting"
- "ubuntu-py310"

include:
- name: "linting"
python: "3.10"
os: ubuntu-latest
tox_env: "lint"
- name: "ubuntu-py310"
python: "3.10"
os: ubuntu-latest
tox_env: "py310"

steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox virtualenv
- name: Test build
run: "tox -e ${{ matrix.tox_env }}"
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from tackle import Context
from providers.prompts.hooks.select import InquirerListHook
from tackle.context import Paths, Source


@pytest.fixture()
Expand All @@ -13,7 +14,7 @@ def f(return_value, **kwargs):
'providers.prompts.hooks.select.prompt',
return_value=return_value
)
context = Context(key_path=[])
context = Context(key_path=[], path=Paths(current=Source(file='')))
hook = InquirerListHook(**kwargs)
output = hook.exec(context=context)

Expand Down

0 comments on commit bd3b200

Please sign in to comment.