diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..4ab576e --- /dev/null +++ b/.github/workflows/test.yml @@ -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 \ No newline at end of file