diff --git a/.github/workflows/packs.yaml b/.github/workflows/packs.yaml new file mode 100644 index 0000000..6e01d6e --- /dev/null +++ b/.github/workflows/packs.yaml @@ -0,0 +1,27 @@ +name: Packs + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + strategy: + matrix: + pack: ["packs/cats.csv","packs/elements.csv","packs/famous-art-robberies.csv","packs/harry-potter-and-the-deathly-hallows-part-2.csv","packs/mcdonalds-baby-animals.csv","packs/mcdonalds-minions-rise-of-gru.csv","packs/star-wars-rise-of-the-bounty-hunters.csv","packs/star-wars-starships.csv","packs/the-art-game.csv","packs/the-big-bang-theory.csv"] # ls -1 packs/*.csv | jq -Rsc 'split("\n")[:-1]' + run_emulations: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up python + uses: actions/setup-python@v5 + with: + python-version: '3.11' + - name: Run tests + run: | + python top_trumps.py --emulations 10 --pack ${{ matrix.pack }} +``` \ No newline at end of file