-
Notifications
You must be signed in to change notification settings - Fork 201
53 lines (50 loc) · 1.34 KB
/
macos-tests.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
name: Macos tests
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: macos-tests-${{ github.ref }}
cancel-in-progress: true
jobs:
macos:
name: Mac Py${{ matrix.PYTHON_VERSION }}
runs-on: macos-latest
env:
CI: True
QTCONSOLE_TESTING: True
PYTHON_VERSION: ${{ matrix.PYTHON_VERSION }}
RUNNER_OS: 'macos'
strategy:
fail-fast: false
matrix:
PYTHON_VERSION: ['3.8', '3.9', '3.10', '3.11']
timeout-minutes: 15
steps:
- name: Checkout branch
uses: actions/checkout@v3
- name: Install Conda
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: test
auto-update-conda: false
auto-activate-base: false
miniforge-version: latest
mamba-version: "*"
channels: conda-forge
channel-priority: true
python-version: ${{ matrix.PYTHON_VERSION }}
- name: Install package dependencies
shell: bash -el {0}
run: mamba env update --file requirements/environment.yml
- name: Show environment information
shell: bash -el {0}
run: |
conda info
conda list
- name: Run tests
shell: bash -el {0}
run: pytest -vv --color=yes --cov=qtconsole qtconsole