Skip to content

Commit

Permalink
add more variations
Browse files Browse the repository at this point in the history
  • Loading branch information
aelmekeev committed Mar 10, 2024
1 parent 73209e4 commit 05c5cd6
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 2 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/emulations.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
4 changes: 2 additions & 2 deletions .github/workflows/packs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
27 changes: 27 additions & 0 deletions .github/workflows/players.yaml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 05c5cd6

Please sign in to comment.