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:
|
2023-09-15 09:02:08 +02:00
|
|
|
workflow_dispatch:
|
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]
|
2024-10-14 23:27:24 +02:00
|
|
|
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
|
2022-01-07 11:59:06 +01:00
|
|
|
include:
|
|
|
|
- os: macos-latest
|
2025-02-19 18:23:56 +01:00
|
|
|
python-version: "3.12"
|
|
|
|
- os: ubuntu-24.04-arm
|
|
|
|
python-version: "3.12"
|
2021-10-12 13:57:41 +01:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout source
|
2024-02-06 17:54:33 +01:00
|
|
|
uses: actions/checkout@v4
|
2021-10-12 13:57:41 +01:00
|
|
|
|
|
|
|
- name: Setup python
|
2024-02-06 17:54:33 +01:00
|
|
|
uses: actions/setup-python@v5
|
2021-10-12 13:57:41 +01:00
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
2025-01-10 09:36:05 +01:00
|
|
|
- name: uv
|
|
|
|
uses: astral-sh/setup-uv@v5
|
2021-10-12 13:57:41 +01:00
|
|
|
|
|
|
|
- name: Install
|
|
|
|
run: |
|
2025-01-10 09:36:05 +01:00
|
|
|
uv pip install wheel --system
|
|
|
|
uv pip install . --system
|
|
|
|
uv pip install pytest pytest-cov pytest-benchmark hypothesis --system
|
|
|
|
uv pip freeze --system
|
2021-10-12 14:06:36 +01:00
|
|
|
|
2021-10-12 13:57:41 +01:00
|
|
|
- name: Run tests
|
2024-08-22 21:59:07 +02:00
|
|
|
run: pytest --cov=pyerrors -vv
|