Merge branch 'main' into dev #9
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
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 | |