39 lines
931 B
YAML
Raw Normal View History

2023-08-06 19:11:16 +02:00
name: Tests
on:
2023-08-07 11:40:50 +02:00
push:
2023-08-07 11:24:48 +02:00
branches:
2023-08-07 11:40:50 +02:00
- main
2023-08-07 11:21:49 +02:00
tags-ignore:
2023-08-07 11:40:50 +02:00
- v*
pull_request:
2023-08-06 19:11:16 +02:00
jobs:
test:
2024-10-29 17:37:16 +02:00
name: Build and Test
runs-on: ubuntu-24.04
2023-08-06 19:11:16 +02:00
strategy:
matrix:
2024-12-27 18:33:51 +01:00
python-version: [ "3.11", "3.12", "3.13" ]
2023-08-06 19:11:16 +02:00
steps:
2023-08-06 19:24:16 +02:00
- uses: actions/checkout@v3
2023-08-06 19:11:16 +02:00
- name: Set up Python ${{ matrix.python-version }}
2023-08-06 19:24:16 +02:00
uses: actions/setup-python@v3
2023-08-06 19:11:16 +02:00
with:
python-version: ${{ matrix.python-version }}
2025-01-10 00:09:05 +01:00
cache: 'pip'
2025-01-10 11:22:33 +02:00
cache-dependency-path: './requirements/*'
2023-08-06 19:24:16 +02:00
env:
AGENT_TOOLSDIRECTORY: /opt/hostedtoolcache
2023-08-06 19:11:16 +02:00
- name: Install dependencies
run: |
python -m pip install --upgrade pip
2024-05-26 15:48:19 +02:00
pip install tox tox-gh-actions build
2023-08-06 19:11:16 +02:00
- name: Test with tox
run: tox
2024-05-26 15:48:19 +02:00
- name: Build
run: python -m build
- uses: actions/upload-artifact@v3
2024-05-26 15:43:53 +02:00
with:
name: Artifacts
2024-10-29 22:55:01 +01:00
path: dist/*