Skip to content

Commit

Permalink
Added test auto workflow|
Browse files Browse the repository at this point in the history
  • Loading branch information
dwest77a committed Oct 31, 2024
1 parent 62701ce commit c7d0da9
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/test.yml
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

0 comments on commit c7d0da9

Please sign in to comment.