Skip to content

Merge branch 'main' of github.com:admeeer/cicd-tutorial #5

Merge branch 'main' of github.com:admeeer/cicd-tutorial

Merge branch 'main' of github.com:admeeer/cicd-tutorial #5

name: cicd
# only run this workflow when something is pushed to main
on:
push:
branches:
- main
# define our jobs
jobs:
build_and_test:
# define our OS
runs-on: ubuntu-latest
# rely on predefined GitHub actions to setup our python environment
steps:
- uses: actions/checkout@v2
# setup step
- name: setup
uses: actions/setup-python@v2
with:
python-version: 3.9
# install step
- name: install
run: |
python -m pip install --upgrade pip
pip install pytest
# test step
- name: test
run: |
pytest tests/