Skip to content

Commit ee23af5

Browse files
split ci workflow into deploy and test
1 parent 5bebc0c commit ee23af5

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches:
66
- master
7-
- development
87
tags:
98
- 'v*.*.*'
109
pull_request:

.github/workflows/test.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- development
8+
pull_request:
9+
workflow_dispatch:
10+
11+
jobs:
12+
build:
13+
name: PyPI - Build Python 🐍 distributions 📦
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
18+
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v4
22+
with:
23+
submodules: recursive
24+
25+
- name: Install Python
26+
uses: actions/setup-python@v5
27+
with:
28+
python-version: ${{ matrix.python-version }}
29+
30+
- name: Install poetry
31+
uses: abatilo/actions-poetry@v4
32+
33+
- name: Install the project dependencies
34+
run: poetry install
35+
36+
- name: Run the automated tests
37+
run: poetry run pytest tests --cov=ogn --cov-report=xml --cov-report=html
38+
39+
- name: Lint code with flake8
40+
run: poetry run flake8 ogn tests --ignore=E501,E701
41+
42+
- name: Build the project
43+
run: poetry build
44+
shell: bash

0 commit comments

Comments
 (0)