Add setuptools to requirements_test file to enable CI/CD checks for Python 3.12+ to work #33
Workflow file for this run
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: codecov | |
| on: | |
| pull_request: | |
| branches-ignore: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| run: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| python-version: ['3.12', '3.11', '3.10', '3.9'] | |
| env: | |
| OS: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v1 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| node-version: 16 | |
| - name: Install dependencies | |
| run: | | |
| pip install -r requirements.txt --use-pep517 | |
| pip install -r requirements_test.txt --use-pep517 | |
| python setup.py sdist bdist_wheel | |
| pip install dist/*.whl | |
| - name: Run tests and collect coverage | |
| run: python -m pytest tests/ --cov=./ --cov-report=xml | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v3 |