Basic config for testing #1
Workflow file for this run
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
# This configuration does the following: | |
# It triggers the CI pipeline when code is pushed to the master branch. | |
# It sets up a Python environment, installs project dependencies, and runs pytest. | |
# Test results are uploaded as artifacts for later examination. | |
name: CI | |
on: | |
push: | |
branches: | |
# - master | |
- test_sanity | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.10 | |
- name: Install Dependencies | |
run: pip install -r requirements.txt | |
- name: Run Tests with pytest | |
run: pytest | |
- name: Upload Test Artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: test-results | |
path: test-reports |