-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
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
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 |