Skip to content

Commit 1f7c632

Browse files
committed
Updated workflows
1 parent 57776f6 commit 1f7c632

3 files changed

Lines changed: 38 additions & 78 deletions

File tree

.github/workflows/python-app.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Python package
2+
3+
on:
4+
push:
5+
branches:
6+
- "master"
7+
pull_request:
8+
branches:
9+
- "master"
10+
11+
jobs:
12+
build:
13+
name: ${{ matrix.python-version }}
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11", "3.12" ]
18+
19+
steps:
20+
- uses: actions/checkout@v3
21+
- name: Set up Python ${{ matrix.python-version }}
22+
uses: actions/setup-python@v4
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install ruff pytest
29+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
30+
- name: Lint with ruff
31+
run: |
32+
# stop the build if there are Python syntax errors or undefined names
33+
ruff --output-format=github --select=E9,F63,F7,F82 --target-version=py37 .
34+
# default set of ruff rules with GitHub Annotations
35+
ruff --output-format=github --target-version=py37 .
36+
- name: Test with pytest
37+
run: |
38+
pytest

.github/workflows/python-publish.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)