Skip to content

Commit

Permalink
Add tests config
Browse files Browse the repository at this point in the history
  • Loading branch information
wellington36 committed Nov 17, 2024
1 parent e335049 commit ddd9424
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/test_infsum.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ddd9424

Please sign in to comment.