-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (37 loc) · 1.07 KB
/
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
# SPDX-FileCopyrightText: © 2023 Kevin Meagher
#
# SPDX-License-Identifier: GPL-3.0-or-later
name: Tests
on: [push, pull_request]
jobs:
Tests:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
os: [ubuntu-22.04]
include:
- python-version: 3.11
os: macos-12
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: pyproject.toml
- name: Install multizone
run: |
python3 -m pip install --upgrade pip
python3 -m pip install flit
python3 -m flit install --symlink --deps=production --extras=test
- name: Run Tests
run: python3 -m pytest --cov --cov-report=xml
- name: Upload Coverage to Codecov
if: ${{ !github.event.act }}
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: false
verbose: true