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

Add macOS as CI target. #26

Merged
merged 1 commit into from
Jan 22, 2024
Merged
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
54 changes: 28 additions & 26 deletions .github/workflows/ci.yaml
Copy link
Contributor Author

@sodul sodul Jan 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that I fixed the whitespace so look at the diff with whitespace hidden.

image

Original file line number Diff line number Diff line change
@@ -1,30 +1,32 @@
# GitHub action to run on every Pull Request.

name: CI
name: CI

on:
push:
branches: [ 'master' ]
pull_request:
branches: [ '**' ]
workflow_dispatch:
# Allows us to manually trigger the workflow.
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# Python 3.10 needs newer version of pytest for compatibility.
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
on:
push:
branches: [ 'master' ]
pull_request:
branches: [ '**' ]
workflow_dispatch:
# Allows us to manually trigger the workflow.
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# Tests are failing on Windows for now.
os: ['macos-latest', 'ubuntu-latest']
# Python 3.10+ needs newer versions of pytest for compatibility.
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Python dependencies
run: pip install -r requirements.txt -r requirements.dev.txt
- name: Unittests
run: pytest
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Python dependencies
run: pip install -r requirements.txt -r requirements.dev.txt
- name: Unittests
run: pytest