Skip to content

Commit 638d597

Browse files
authored
Merge pull request #50 from MilagrosMarin/main
fix: add element's test flow
2 parents 65270b4 + 0876d2d commit 638d597

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.github/workflows/test.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Test
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
workflow_dispatch:
10+
jobs:
11+
tests:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
py_ver: ["3.9", "3.10"]
16+
mysql_ver: ["8.0"]
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Set up Python ${{matrix.py_ver}}
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: ${{matrix.py_ver}}
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install flake8 "black[jupyter]"
27+
- name: Run style tests
28+
run: |
29+
python_version=${{matrix.py_ver}}
30+
black element_lab --check --verbose --target-version py${python_version//.}

element_lab/version.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
"""Package metadata."""
2+
23
__version__ = "0.3.0"

0 commit comments

Comments
 (0)