Skip to content

Commit

Permalink
Debug macos ci
Browse files Browse the repository at this point in the history
Signed-off-by: tdruez <tdruez@nexb.com>
  • Loading branch information
tdruez committed Jul 25, 2024
1 parent 45180a2 commit 6eac6d6
Showing 1 changed file with 28 additions and 3 deletions.
31 changes: 28 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,54 @@ name: Python CI
on: [push, pull_request]

jobs:
lint-and-mypy:
name: Lint & mypy
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Python environment
uses: actions/setup-python@v4
with:
python-version: "3.9"
architecture: "x64"

- name: Install
run: |
pip install -e .[lint]
- name: Validate
run: |
isort --check-only src/ tests/
black --check --line-length 100 .
mypy
build-and-test:
name: Test & build (py${{ matrix.python-version }} on ${{ matrix.os }})
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
matrix:
os: [macos-latest]
os: [ubuntu-latest, windows-latest, macos-13]
python-version:
- "3.12"
- "3.11"
- "3.10"
- "3.9"
- "3.8"
# - "3.7"
- "3.7"

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Python environment
uses: actions/setup-python@v5
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: "x64"

- name: Install
run: |
Expand Down

0 comments on commit 6eac6d6

Please sign in to comment.