BW3-Core/.github/workflows/run_pytest.yml
Bastian Schroll 7ecec6940f
Update run_pytest.yml
fix gh-action
2022-02-17 10:07:51 +01:00

37 lines
765 B
YAML

name: pytest
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.7, 3.8, 3.9, 3.10.2]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{matrix.python-version}} at ${{matrix.os}}
uses: actions/setup-python@v1
with:
python-version: ${{matrix.python-version}}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
mkdir log/
- name: Test with pytest
run: |
pytest -c 'test/pytest.ini'
- name: Save artifacts
uses: actions/upload-artifact@master
with:
name: test.log
path: log/test.log