Added CI #55
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Continuous Testing | |
| on: | |
| push: | |
| branches: | |
| - develop | |
| - master | |
| - "feature/*" | |
| - "release/*" | |
| - "hotfix/*" | |
| pull_request: | |
| branches: | |
| - develop | |
| - master | |
| jobs: | |
| test: | |
| name: Run tests | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: [3.12] | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
| - name: Install package | |
| run: | | |
| pip install -e . | |
| - name: Run tests | |
| run: pytest -q |