Skip to content

Automated test suite #6

Automated test suite

Automated test suite #6

name: Test in New Recruit
on: [ push, pull_request ]
jobs:
scrape:
runs-on: ubuntu-latest
steps:
- name: Checking out game system to home/battlescribe/data/horus-heresy
uses: actions/checkout@v4
with:
path: ~/BattleScribe/data/horus-heresy
- name: Checking out bscopy
uses: actions/checkout@v4
with:
repository: nstephenh/bscopy
path: ~/BSCopy
- name: Setting up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Installing package list
run: apt list --installed
- name: Removing previous chrome instances on runner
run: sudo apt purge google-chrome-stable
# Need to fetch reqs if needed
- name: Installing all necessary packages
run: pip install webdriver-manager selenium
- name: Running the Python script
run: cd ~/BSCopy/ && python3 system/tests/test_game.py