summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Talbert <swt@techie.net>2022-01-12 15:48:15 -0500
committerScott Talbert <swt@techie.net>2022-01-12 15:48:15 -0500
commitb7a2bd8704ef7652ed14a353c4ba3242beeccfb7 (patch)
treefd40a5e74f8e3173232b80a0e744d47dd37f2dc8
parent5b4738285e39285976a768f8513face7bd849f98 (diff)
downloadpycurl-b7a2bd8704ef7652ed14a353c4ba3242beeccfb7.tar.gz
Add CI for macOS
-rw-r--r--.github/workflows/ci-macos.yml43
1 files changed, 43 insertions, 0 deletions
diff --git a/.github/workflows/ci-macos.yml b/.github/workflows/ci-macos.yml
new file mode 100644
index 0000000..02a67d6
--- /dev/null
+++ b/.github/workflows/ci-macos.yml
@@ -0,0 +1,43 @@
+# This workflow will install Python dependencies, run tests and lint with a single version of Python
+# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
+
+name: CI-macOS
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+
+jobs:
+ build:
+
+ runs-on: macOS-11
+ env:
+ PYCURL_CURL_CONFIG: /usr/bin/curl-config
+ PYCURL_SSL_LIBRARY: sectransp
+ strategy:
+ fail-fast: false
+ matrix:
+ python-version: ["3.7", "3.8", "3.9", "3.10"]
+
+ steps:
+ - uses: actions/checkout@v2
+ - name: Select Xcode version
+ # Note: had to select a Version of Xcode that has macOS 11.x SDK
+ run: sudo xcode-select -s '/Applications/Xcode_13.0.app/Contents/Developer'
+ - name: Set up Python ${{ matrix.python-version }}
+ uses: actions/setup-python@v2
+ with:
+ python-version: ${{ matrix.python-version }}
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip
+ pip install flake8 pytest
+ if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
+ - name: Build
+ run: |
+ make
+ - name: Test with pytest
+ run: |
+ make test