From ce3e19183afb714790037e56e1b3a555d59e560d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Longchamp?= <97044425+regislon@users.noreply.github.com> Date: Thu, 26 Jan 2023 14:19:38 +0100 Subject: [PATCH] feat(ci) : add pytest to github action and change name for Black action --- .github/workflows/black.yml | 2 +- .github/workflows/pytest.yml | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/pytest.yml diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml index edadfc7e..11fad770 100644 --- a/.github/workflows/black.yml +++ b/.github/workflows/black.yml @@ -1,4 +1,4 @@ -name: Lint +name: Black on: [pull_request, workflow_dispatch] diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml new file mode 100644 index 00000000..81dacba5 --- /dev/null +++ b/.github/workflows/pytest.yml @@ -0,0 +1,20 @@ +name: Pytest +on: [pull_request, workflow_dispatch] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: 3.10.8 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + pip install -e . + - name: Test with pytest + run: | + pytest \ No newline at end of file