Skip to content

Commit

Permalink
Added CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
olic32 committed Apr 5, 2023
1 parent 03c8e11 commit 6e6d085
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# The name of the workflow
name: Build and Test

# This workflow will run on any push to the repository
on: push

jobs:
test:
# Similar to docker, we set up a virtual machine to run our tests
runs-on: ubuntu-latest

steps:
# Each step has a name, some code, and some options
- name: Check out the code
uses: actions/checkout@v3 # This is a reference to some code to run

# This step installs the Python version we want
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11

# This step installs pip, pipenv, and our dependencies
- name: Install dependencies
run: | # Note that there's no reference here — just commands to run
python -m pip install --upgrade pip
pip install pipenv
pipenv install --dev
# Now we run our tests
- name: Test with pytest
run: |
pipenv run pytest

0 comments on commit 6e6d085

Please sign in to comment.