This repository has been archived by the owner on May 22, 2024. It is now read-only.
Update README.md #189
This file contains 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: Pytest Automated Testing | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
automated-testing: | |
name: Automated Testing | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.8', '3.9', '3.10'] | |
steps: | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: x64 | |
- name: Setup Poetry | |
run: | | |
curl -sL https://install.python-poetry.org | python | |
echo "$HOME/.local/bin" >> $GITHUB_PATH | |
poetry config virtualenvs.in-project true | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
poetry install | |
- name: Pytest Test Runner | |
run: poetry run python -m pytest -p no:sugar |