chore: Update python setup version in CI #179
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: Unit tests | |
on: [push] | |
jobs: | |
test: | |
runs-on: ubuntu-24.04 | |
strategy: | |
matrix: | |
python-version: [ '3.8', '3.9', '3.10' ] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: pip | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install setuptools wheel coverage | |
pip install virtualenv tox==3.26.0 tox-wheel==1.0.0 tox-gh-actions | |
- name: Build, install and run unit tests | |
run: | | |
pip install -r requirements.txt | |
coverage run -m unittest discover vafator.tests | |
- name: Upload Coverage to Codecov | |
uses: codecov/codecov-action@v3 |