Update test_all_permutations.py #108
Workflow file for this run
This file contains hidden or 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: Test workflow | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository (full history) | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 # ← fetch all branches and commits | |
- name: Ensure master/main exist locally | |
run: | | |
# Try to fetch both master and main so that one of them is guaranteed to exist | |
git fetch origin master:master || true | |
git fetch origin main:main || true | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Install CMake and Make | |
run: sudo apt-get update && sudo apt-get install -y cmake make | |
- name: Run tests | |
run: | | |
chmod +x run_tests.sh | |
./run_tests.sh |