Skip to content

Commit

Permalink
ci: add windows and macos
Browse files Browse the repository at this point in the history
  • Loading branch information
u8slvn committed Mar 8, 2024
1 parent eefae19 commit bf8776c
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,20 @@ on:
pull_request:
branches:
- main

jobs:
test:
name: test ${{ matrix.python-version }}
runs-on: ubuntu-latest
name: ${{ matrix.os }} - py${{ matrix.python-version }}
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: ["ubuntu", "windows", "macos"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
defaults:
run:
shell: bash

steps:
- uses: actions/checkout@v2

Expand All @@ -42,7 +45,10 @@ jobs:
- name: Publish coverage
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: github.event_name != 'pull_request'
run: |
pip install coveralls
coveralls --service=github
if: |
github.event_name != 'pull_request' &&
matrix.os == 'ubuntu' &&
matrix.python-version == '3.10'

0 comments on commit bf8776c

Please sign in to comment.