Add .gitea/workflows/*.yaml
This commit is contained in:
29
.gitea/workflows/009_matrix.yaml
Normal file
29
.gitea/workflows/009_matrix.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
name: Matrix
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
run-tests:
|
||||
strategy:
|
||||
fail-fast: true
|
||||
matrix:
|
||||
os: [ubuntu-20.04, ubuntu-22.04]
|
||||
python-version: ['3.8', '3.10']
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- name: Checkout source code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "${{ matrix.python-version }}"
|
||||
|
||||
- name: Install tox
|
||||
run: pip install tox
|
||||
|
||||
- name: Run unit tests
|
||||
run: |
|
||||
cd backend
|
||||
tox -e unit
|
||||
Reference in New Issue
Block a user