Skip to content

Merge branch 'main' into dev #9

Merge branch 'main' into dev

Merge branch 'main' into dev #9

name: Code checks
on:
push:
branches:
- dev
jobs:
test-and-merge-status:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v2
with:
ref: dev # Specify the branch to check out
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install pytest
run: |
python -m pip install pytest
- name: Run pytest tests
run: |
train_test.py
- name: Check test results and provide merge status
run: |
if [[ $? -eq 0 ]]; then
echo "Ready to merge with main branch"
else
echo "Code changes need further attention"
fi