diff --git a/.github/workflows/emulations.yaml b/.github/workflows/emulations.yaml new file mode 100644 index 0000000..e549274 --- /dev/null +++ b/.github/workflows/emulations.yaml @@ -0,0 +1,27 @@ +name: Number of emulations + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + run_emulations: + runs-on: ubuntu-latest + strategy: + matrix: + pack: ["packs/elements.csv","packs/mcdonalds-baby-animals.csv","packs/the-art-game.csv"] + emulations: [10000, 100000, 1000000] + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up python + uses: actions/setup-python@v5 + with: + python-version: '3.11' + - name: Run emulations + run: | + python top_trumps.py --pack ${{ matrix.pack }} --emulations ${{ matrix.emulations }} diff --git a/.github/workflows/packs.yaml b/.github/workflows/packs.yaml index 821d9e0..5e80acc 100644 --- a/.github/workflows/packs.yaml +++ b/.github/workflows/packs.yaml @@ -21,6 +21,6 @@ jobs: uses: actions/setup-python@v5 with: python-version: '3.11' - - name: Run tests + - name: Run emulations run: | - python top_trumps.py --emulations 10 --pack ${{ matrix.pack }} + python top_trumps.py --pack ${{ matrix.pack }} diff --git a/.github/workflows/players.yaml b/.github/workflows/players.yaml new file mode 100644 index 0000000..00573eb --- /dev/null +++ b/.github/workflows/players.yaml @@ -0,0 +1,27 @@ +name: Number of players + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + run_emulations: + runs-on: ubuntu-latest + strategy: + matrix: + pack: ["packs/elements.csv","packs/mcdonalds-baby-animals.csv","packs/the-art-game.csv"] + players: [2, 3, 5, 7, 10] + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up python + uses: actions/setup-python@v5 + with: + python-version: '3.11' + - name: Run emulations + run: | + python top_trumps.py --pack ${{ matrix.pack }} --number_of_players ${{ matrix.players }}