huepaper/.gitea/workflows/tests.yml
Profitroll 806bde8af5
All checks were successful
Tests / test (3.11) (push) Successful in 1m4s
Tests / test (3.10) (push) Successful in 1m6s
Tests / test (3.12) (push) Successful in 1m10s
Tests / test (3.9) (push) Successful in 55s
Replaced ubuntu-latest with ubuntu-24.04 and added pip cache
2025-01-10 11:25:31 +02:00

35 lines
768 B
YAML

name: Tests
on:
push:
branches:
- dev
- master
tags-ignore:
- v*
pull_request:
jobs:
test:
runs-on: ubuntu-24.04
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: './requirements/*'
env:
AGENT_TOOLSDIRECTORY: /opt/hostedtoolcache
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Test with tox
run: tox