2021-10-26 10:20:47 +01:00
|
|
|
name: pytest
|
2021-10-12 13:57:41 +01:00
|
|
|
|
2021-10-12 14:45:20 +01:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- develop
|
|
|
|
pull_request:
|
2021-12-08 19:54:03 +00:00
|
|
|
schedule:
|
2021-12-09 07:37:42 +00:00
|
|
|
- cron: '0 4 1 * *'
|
2021-10-12 13:57:41 +01:00
|
|
|
|
|
|
|
jobs:
|
2021-10-13 09:43:40 +01:00
|
|
|
pytest:
|
2022-01-07 11:59:06 +01:00
|
|
|
runs-on: ${{ matrix.os }}
|
2021-10-12 13:57:41 +01:00
|
|
|
strategy:
|
2022-10-19 13:03:23 +01:00
|
|
|
fail-fast: false
|
2021-10-12 13:57:41 +01:00
|
|
|
matrix:
|
2022-01-07 11:59:06 +01:00
|
|
|
os: [ubuntu-latest]
|
2023-05-21 17:11:38 +01:00
|
|
|
python-version: ["3.8", "3.9", "3.10", "3.11"]
|
2022-01-07 11:59:06 +01:00
|
|
|
include:
|
|
|
|
- os: macos-latest
|
2023-06-02 16:17:28 +01:00
|
|
|
python-version: "3.10"
|
2021-10-12 13:57:41 +01:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout source
|
2022-11-30 17:49:01 +00:00
|
|
|
uses: actions/checkout@v3
|
2021-10-12 13:57:41 +01:00
|
|
|
|
|
|
|
- name: Setup python
|
2022-11-30 17:49:01 +00:00
|
|
|
uses: actions/setup-python@v4
|
2021-10-12 13:57:41 +01:00
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
|
|
|
|
- name: Install
|
|
|
|
run: |
|
2021-10-12 14:06:36 +01:00
|
|
|
python -m pip install --upgrade pip
|
2021-12-10 14:15:40 +00:00
|
|
|
pip install wheel
|
2021-10-15 15:46:59 +01:00
|
|
|
pip install .
|
2021-10-12 13:57:41 +01:00
|
|
|
pip install pytest
|
2021-10-13 09:46:05 +01:00
|
|
|
pip install pytest-cov
|
2021-10-26 10:20:47 +01:00
|
|
|
pip install pytest-benchmark
|
2023-01-20 11:44:31 +00:00
|
|
|
pip install hypothesis
|
2022-10-31 15:42:50 +01:00
|
|
|
pip install py
|
2022-06-14 11:59:46 +01:00
|
|
|
pip freeze
|
2021-10-12 14:06:36 +01:00
|
|
|
|
2021-10-12 13:57:41 +01:00
|
|
|
- name: Run tests
|
2023-06-02 15:48:35 +01:00
|
|
|
run: pytest --cov=pyerrors -vv -Werror
|