From f4e22b8c40b80c9cac3a9863f7b8a571812f41fb Mon Sep 17 00:00:00 2001 From: Nikoleta-v3 Date: Mon, 12 Aug 2024 12:35:26 +0200 Subject: [PATCH] setup ci --- .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..03e12db --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +name: ci + +on: [pull_request] + +jobs: + build: + + runs-on: ${{ matrix.os }} + strategy: + max-parallel: 2 + matrix: + os: [ubuntu-latest, macOS-latest] + python-version: [3.9, 3.10] + + steps: + - uses: actions/checkout@v1 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + - name: Install the package + run: | + python install -e . + - name: Test with pytest + run: | + pytest tests \ No newline at end of file