Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split the self_test part of the tests into another file #363

Merged
merged 1 commit into from
Sep 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on: [push, pull_request]
jobs:
tests:
uses: ./.github/workflows/tests.yaml
self_test:
uses: ./.github/workflows/self_test.yaml
lint:
uses: ./.github/workflows/lint.yaml
format:
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/self_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Self test

on: [workflow_call]

jobs:
tests:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
os: [ubuntu-22.04]
runs-on: ${{ matrix.os }}

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 Poetry
uses: Gr1N/setup-poetry@v8
with:
poetry-version: "1.5.1" # support for Python 3.7 was dropped in 1.6.0
- uses: actions/cache@v2
with:
path: |
~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-poetry-self-test-${{ hashFiles('poetry.lock') }}
- name: Install project
run: poetry install --no-interaction --sync --with=nox,test,lint,format,dev
- name: Run fawltydeps on Python ${{ matrix.python-version }}
run: poetry run nox --no-venv --no-install --non-interactive -s self_test -- -vv
2 changes: 0 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,3 @@ jobs:
run: poetry run nox --no-venv --no-install --non-interactive -s tests -- -vv
- name: Run integration tests on Python ${{ matrix.python-version }}
run: poetry run nox --no-venv --no-install --non-interactive -s integration_tests -- -vv
- name: Run fawltydeps on Python ${{ matrix.python-version }}
run: poetry run nox --no-venv --no-install --non-interactive -s self_test -- -vv