-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 1.03 KB
/
test.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
name: Test
on:
push:
branches:
- main
pull_request:
# branches:
# - main
workflow_dispatch:
jobs:
test:
name: ${{ matrix.os}} / py${{ matrix.python_version }}
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: [Ubuntu, macOS]
python_version: ['3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
name: Install Python ${{ matrix.python_version }}
with:
python-version: ${{ matrix.python_version }}
architecture: x64
- name: Install (testing) requirements
run: |
python -m pip install --upgrade pip setuptools
pip install -r requirements.txt
- name: Install multyscale to be tested
run: |
pip install .
- name: Run tests for ${{ matrix.python_version }} through nox
run: |
pipx run nox --non-interactive --error-on-missing-interpreter --session "tests-${{ matrix.python_version }}"