mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2025-12-06 07:12:04 +01:00
39 lines
814 B
YAML
39 lines
814 B
YAML
name: pytest
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest]
|
|
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
|
|
runs-on: ${{matrix.os}}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up Python ${{matrix.python-version}} at ${{matrix.os}}
|
|
uses: actions/setup-python@v3
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -r requirements.txt
|
|
mkdir -p log/
|
|
|
|
- name: Test with pytest
|
|
run: |
|
|
pytest -c 'test/pytest.ini'
|
|
|
|
- name: Save artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: test-${{ matrix.python-version }}.log
|
|
path: log/test.log
|