-
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
32 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,32 @@ | ||
name: Automatic Test | ||
# Specify which GitHub events will trigger a CI build | ||
|
||
on: push | ||
# Define a single job, build | ||
|
||
jobs: | ||
build: | ||
# Specify an OS for the runner | ||
runs-on: ubuntu-latest | ||
|
||
#Define steps | ||
steps: | ||
|
||
# Firstly, checkout repo | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
# Set up Python env | ||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.11 | ||
# Install dependencies | ||
- name: Install Python dependencies | ||
run: | | ||
python3 -m pip install --upgrade pip | ||
pip3 install poetry | ||
poetry install | ||
# Test with pytest | ||
- name: Run pytest | ||
run: | | ||
poetry run pytest |