Skip to content

Commit 3c3aee3

Browse files
committed
CI: run unit tests using Py3.10 on macos-latest
1 parent f3a35f3 commit 3c3aee3

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/ci-tests.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,47 @@ env:
1616

1717
jobs:
1818

19+
macos:
20+
name: CI test on macos-latest
21+
runs-on: macos-latest
22+
env:
23+
TOXENV: py310-unit
24+
steps:
25+
- uses: actions/checkout@v3
26+
with:
27+
fetch-depth: 0
28+
- name: Set up Python
29+
uses: actions/setup-python@v4
30+
with:
31+
python-version: "3.10"
32+
cache: pip
33+
cache-dependency-path: |
34+
requirements.txt
35+
tox.ini
36+
- name: Upgrade setuptools and install tox
37+
run: |
38+
pip install -U pip setuptools wheel
39+
pip install tox tox-gh-actions
40+
# # docker for mac install is not currently stable
41+
# - name: 'SETUP MacOS: load Homebrew cache'
42+
# uses: actions/cache@v3
43+
# if: runner.os == 'macOS'
44+
# with:
45+
# path: |
46+
# ~/Library/Caches/Homebrew/downloads/*--Docker.dmg
47+
# key: brew-actions-setup-docker-1.0.11
48+
# restore-keys: brew-actions-setup-docker-
49+
# - name: setup docker on macos (default stable version)
50+
# uses: docker-practice/actions-setup-docker@master
51+
- name: Test with tox
52+
run: tox
53+
- name: Upload coverage to Codecov
54+
if: ${{ matrix.step == 'unit' }}
55+
uses: codecov/codecov-action@v3
56+
with:
57+
fail_ci_if_error: true
58+
59+
1960
tox:
2061
name: CI tests via Tox
2162

0 commit comments

Comments
 (0)