diff --git a/.github/workflows/test_infsum.yml b/.github/workflows/test_infsum.yml new file mode 100644 index 0000000..656351b --- /dev/null +++ b/.github/workflows/test_infsum.yml @@ -0,0 +1,39 @@ +name: main code + +on: + push: + branches: + - '**' + pull_request: + branches: + - '**' + +jobs: + test: + runs-on: ubuntu-latest + defaults: + run: + working-directory: ${{ github.workspace }} + + strategy: + matrix: + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + pip install --upgrade pip + pip install pytest + pip install -r requirements.txt + + - name: Run tests + run: | + pytest tests.py \ No newline at end of file