From 3be38d6e24b256068cef053c569eeeb6caae580b Mon Sep 17 00:00:00 2001 From: Matthias Schaub Date: Mon, 19 Aug 2024 18:08:41 +0200 Subject: [PATCH] build(ci): run tests in github actions --- .github/workflows/pytest.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/pytest.yml diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml new file mode 100644 index 00000000..7327778e --- /dev/null +++ b/.github/workflows/pytest.yml @@ -0,0 +1,24 @@ +name: pytest + +on: + pull_request: + push: + branches: [main] + +jobs: + pytest: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.12' + cache: 'pip' # caching pip dependencies + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install . + - name: Run tests + run: | + python -m pytest