Skip to content

submit job only in push #5

submit job only in push

submit job only in push #5

name: continuous_integration
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m venv venv
source venv/bin/activate
pip install pytest
pip install -r requirements.txt
env:
CI: true
- name: Run tests
run: |
source venv/bin/activate
python -m pytest test_main.py -v