mirror of
https://github.com/pim-n/pg-rad
synced 2026-03-23 21:58:12 +01:00
Updated config file for ci. Added dispatch
This commit is contained in:
41
.github/workflows/ci-tests.yml
vendored
41
.github/workflows/ci-tests.yml
vendored
@ -2,45 +2,36 @@ name: Tests
|
|||||||
on:
|
on:
|
||||||
pull-request:
|
pull-request:
|
||||||
branches: ["main", "dev"]
|
branches: ["main", "dev"]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
tests:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ ubuntu-latest, windows-latest ]
|
os: [ ubuntu-latest, windows-latest ]
|
||||||
python-version: [ '3.12' ]
|
python-version: [ '3.12' ]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Checkout
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- uses: actions/checkout@v4
|
||||||
uses: actions/setup-python@v2
|
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
|
cache: pip
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
working-directory: .
|
working-directory: .
|
||||||
run: |
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
pip install -e .[dev]
|
pip install -e .[dev]
|
||||||
- name: Run flake8
|
|
||||||
working-directory: .
|
- name: Run linting
|
||||||
run: |
|
run: |
|
||||||
flake8 ./src/
|
flake8 ./src/
|
||||||
test:
|
|
||||||
needs: lint
|
- name: Run tests
|
||||||
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: |
|
run: |
|
||||||
pytest
|
pytest
|
||||||
|
|||||||
Reference in New Issue
Block a user