This repository has been archived by the owner on Dec 20, 2023. It is now read-only.
Create PULL_REQUEST_TEMPLATE.md #19
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: Test on Push and Pull Request | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3.0.0 | |
with: | |
python-version: 3.9 | |
- name: Create and start virtual environment | |
run: | | |
python -m venv .environ | |
. .environ/bin/activate | |
- name: Install dependencies | |
run: | | |
pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Run tests | |
run: pytest |