Skip to content

Commit

Permalink
add CI and pyproject config for pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
j2kun committed Mar 18, 2024
1 parent 9c36393 commit 4fdadcf
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/scripts_test.yml
@@ -0,0 +1,31 @@
name: Scripts tests
permissions: read-all
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # pin@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # pin@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Run tests
run: |
python -m pytest
15 changes: 15 additions & 0 deletions pyproject.toml
@@ -0,0 +1,15 @@
[tool.pytest.ini_options]
norecursedirs = [
".git",
"__pycache__",
"bazel",
"bazel-bin",
"bazel-heir",
"bazel-out",
"bazel-testlogs",
"docs",
"external",
"tests",
"tools",
"venv",
]

0 comments on commit 4fdadcf

Please sign in to comment.