mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2025-12-06 07:12:04 +01:00
Update run_pytest.yml
- Entfernt **Python 3.7** aus der `matrix`, da sie nicht mehr von GitHub Actions bereitgestellt wird (End-of-Life). - Aktualisiert `actions/checkout` von `v1` auf `v3` (empfohlene aktuelle Version). - Verwendet `actions/upload-artifact@v3` anstelle von `@master` für stabileren Artifact-Upload. - Fügt `mkdir -p log/` hinzu, um sicherzustellen, dass das Log-Verzeichnis existiert.
This commit is contained in:
parent
e164533ad4
commit
056de68ce2
8
.github/workflows/run_pytest.yml
vendored
8
.github/workflows/run_pytest.yml
vendored
|
|
@ -8,11 +8,11 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest]
|
os: [ubuntu-latest]
|
||||||
python-version: ['3.7', '3.8', '3.9', '3.10']
|
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
|
||||||
runs-on: ${{matrix.os}}
|
runs-on: ${{matrix.os}}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set up Python ${{matrix.python-version}} at ${{matrix.os}}
|
- name: Set up Python ${{matrix.python-version}} at ${{matrix.os}}
|
||||||
uses: actions/setup-python@v3
|
uses: actions/setup-python@v3
|
||||||
|
|
@ -23,14 +23,14 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
mkdir log/
|
mkdir -p log/
|
||||||
|
|
||||||
- name: Test with pytest
|
- name: Test with pytest
|
||||||
run: |
|
run: |
|
||||||
pytest -c 'test/pytest.ini'
|
pytest -c 'test/pytest.ini'
|
||||||
|
|
||||||
- name: Save artifacts
|
- name: Save artifacts
|
||||||
uses: actions/upload-artifact@master
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: test.log
|
name: test.log
|
||||||
path: log/test.log
|
path: log/test.log
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue