-
Notifications
You must be signed in to change notification settings - Fork 15
60 lines (55 loc) · 1.75 KB
/
tests-mac.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Run tests (Mac)
'on':
# Allows for manually starting tests
workflow_dispatch:
# Triggers when pull request is created
pull_request:
# See: https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
permissions:
actions: write
checks: none
contents: read
deployments: none
id-token: none
issues: none
discussions: none
packages: none
pages: none
pull-requests: none
repository-projects: none
security-events: read
statuses: none
# Cancel in-progress jobs/runs for the same workflow; if you push to same
# pull request twice, the previous workflow should be canceled.
# From: https://docs.github.com/en/actions/using-jobs/using-concurrency#example-only-cancel-in-progress-jobs-or-runs-for-the-current-workflow
concurrency:
group: mac-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test-mac-py310:
# macOS 12 Monterey
# See: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners
runs-on: macos-12
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Show OS version
run: |
sw_vers -productVersion && \
system_profiler SPSoftwareDataType
- name: Show environment variables
run: printenv
- name: Show python version
run: python --version
- name: Show platform information
run: python -c "import platform; print(platform.platform())"
- name: install tox
run: |
python -m pip install -U pip wheel && \
python -m pip install tox~=4.6.0
- name: Run tests with tox
run: tox -e py310