All checks were successful
Tests and Linting / Tests-Linting (3.11) (push) Successful in 36s
Build Docker / Build Images (map[dockerfile:Dockerfile.hsd tag_suffix:-hsd target:hsd]) (push) Successful in 50s
Build Docker / Build Images (map[dockerfile:Dockerfile tag_suffix: target:default]) (push) Successful in 1m10s
Tests and Linting / Tests-Linting (3.10) (push) Successful in 3m15s
Tests and Linting / Tests-Linting (3.13) (push) Successful in 3m17s
40 lines
1.0 KiB
YAML
40 lines
1.0 KiB
YAML
name: Tests and Linting
|
|
run-name: Python Compatibility and Linting tests
|
|
on:
|
|
push:
|
|
|
|
jobs:
|
|
Tests-Linting:
|
|
runs-on: [ubuntu-latest, amd]
|
|
container: catthehacker/ubuntu:act-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: ['3.10', '3.11', '3.13']
|
|
fail-fast: false
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
if [ -f requirements.txt ]; then
|
|
pip install -r requirements.txt
|
|
fi
|
|
pip install pytest ruff
|
|
|
|
- name: Test with pytest
|
|
run: |
|
|
echo "Testing with Python ${{ matrix.python-version }}"
|
|
python -m pytest main.py
|
|
|
|
- name: Lint with ruff
|
|
run: |
|
|
echo "Linting with Python ${{ matrix.python-version }}"
|
|
ruff check |