Skip to content

Commit

Permalink
feat(ci): switch to using a single workflow for testing and checking
Browse files Browse the repository at this point in the history
Switched from using separate workflows for testing and checking to a single workflow that includes both tasks. This change was made to simplify the CI process and reduce duplication of code.
  • Loading branch information
liblaf committed Dec 19, 2023
1 parent 263d014 commit e4bcfc2
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 52 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,38 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}

jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Task
uses: arduino/setup-task@v1
with:
repo-token: ${{ github.token }}
- name: Install Poetry
run: pipx install poetry
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: poetry
- name: Install Dependencies
run: poetry install
- name: Run Tests
run: poetry run task test
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
python-version:
- "3.10"
- "3.11"
- "3.12"

build-pkg:
name: Build Package
runs-on: ubuntu-latest
Expand Down Expand Up @@ -104,6 +136,7 @@ jobs:
check:
name: Check
needs:
- test
- build-pkg
- build-exe
if: always()
Expand Down
52 changes: 0 additions & 52 deletions .github/workflows/test.yaml

This file was deleted.

0 comments on commit e4bcfc2

Please sign in to comment.