mirror of
https://github.com/pim-n/pg-rad
synced 2026-03-23 21:58:12 +01:00
47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
name: Tests
|
|
on:
|
|
pull-request:
|
|
branches: ["main", "dev"]
|
|
jobs:
|
|
lint:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ ubuntu-latest, windows-latest ]
|
|
python-version: [ '3.12' ]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Install Dependencies
|
|
working-directory: .
|
|
run: |
|
|
pip install -e .[dev]
|
|
- name: Run flake8
|
|
working-directory: .
|
|
run: |
|
|
flake8 ./src/
|
|
test:
|
|
needs: lint
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ ubuntu-latest, windows-latest ]
|
|
python-version: [ '3.12' ]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Install Dependencies
|
|
working-directory: .
|
|
run: |
|
|
pip install -e .[dev]
|
|
- name: Run flake8
|
|
working-directory: .
|
|
run: |
|
|
pytest
|