-
Notifications
You must be signed in to change notification settings - Fork 82
37 lines (37 loc) · 1.21 KB
/
test-in-new-recruit.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Test in New Recruit
on: [ push, pull_request ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checking out game system to horus-heresy
uses: actions/checkout@v4
with:
path: horus-heresy
- name: Store CWD in environment variable
run: DEFAULT_DATA_DIRECTORY=$(pwd)
- 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
- name: Install google chrome stable
run: sudo apt install google-chrome-stable
# Need to fetch reqs if needed
- name: Installing all necessary packages
run: pip install webdriver-manager selenium
- name: ls to show present files
run: ls
- name: ls to show present files in BSCopy
run: ls BSCopy
- name: Run tests
run: python3 system/tests/test_game.py
working-directory: ./BSCopy