Skip to content

Commit

Permalink
Add in-line comments
Browse files Browse the repository at this point in the history
  • Loading branch information
admeeer committed Oct 12, 2023
1 parent be22d91 commit e68d667
Showing 1 changed file with 19 additions and 22 deletions.
41 changes: 19 additions & 22 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,28 @@
name: build-and-test
# See https://docs.github.com/en/actions/learn-github-actions/understanding-github-actions
name: build-and-test # The name of our workflow

# only run this workflow when something is pushed to main
# See https://docs.github.com/en/actions/using-workflows/triggering-a-workflow
on:
push:
branches:
push: # Run workflow only on push
branches: # Run workflow only on push to branch
- main

# define our jobs
jobs:
build_and_test:
# define our OS
runs-on: ubuntu-latest
jobs: # A job is a set of steps that execute on the same runner, a small remote virtual machine, see https://docs.github.com/en/actions/using-jobs/using-jobs-in-a-workflow
build_and_test: # Name our job
runs-on: ubuntu-latest # Define our OS

# rely on predefined GitHub actions to setup our python environment
steps:
- uses: actions/checkout@v2
# setup python environment
- name: setup
uses: actions/setup-python@v2
steps: # Define our job steps, steps are ran sequentially and are dependent on each other
- uses: actions/checkout@v4 # Call a predefined GitHub Action that git checks-out the main branch, see https://github.com/actions/checkout

- name: setup # Define a step, 'setup', that sets the workflow runner up
uses: actions/setup-python@v3 # Call a predefined GitHub Action that setups a python environment, see https://github.com/actions/setup-python
with:
python-version: 3.9
# install prerequisite packages for testing
- name: install
run: |
python-version: 3.9 # Define our python version

- name: install # Define a step, 'install' that installs our dependencies
run: | # Run these bash commands
python3 -m pip install --upgrade pip
pip3 install pytest
# run tests using pytest
- name: test
run: |
- name: test # Define a step, 'test', that runs our testing framework
run: | # Run these bash commands
pytest tests/

0 comments on commit e68d667

Please sign in to comment.