From bc09c3cfe18abe1fe42cacd2c0ece5ce3c2c06bb Mon Sep 17 00:00:00 2001 From: Sayan Nandan Date: Wed, 1 May 2024 14:41:18 +0530 Subject: [PATCH] CI: Add workflow --- .github/workflows/test.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..22f2549 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,31 @@ +name: Test + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ['3.8', '3.10'] + + steps: + - uses: actions/checkout@v3 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install build + + - name: Run tests + run: | + python run_tests.py + + - name: Build package + run: | + python -m build