diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..0f7d858 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,30 @@ +name: Test +on: + push: + branches: + - main + pull_request: + branches: + - main + workflow_dispatch: +jobs: + tests: + runs-on: ubuntu-latest + strategy: + matrix: + py_ver: ["3.9", "3.10"] + mysql_ver: ["8.0"] + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{matrix.py_ver}} + uses: actions/setup-python@v4 + with: + python-version: ${{matrix.py_ver}} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install flake8 "black[jupyter]" + - name: Run style tests + run: | + python_version=${{matrix.py_ver}} + black element_lab --check --verbose --target-version py${python_version//.} diff --git a/element_lab/version.py b/element_lab/version.py index 6669fd8..cb2754e 100644 --- a/element_lab/version.py +++ b/element_lab/version.py @@ -1,2 +1,3 @@ """Package metadata.""" + __version__ = "0.3.0"