File tree 1 file changed +33
-3
lines changed
1 file changed +33
-3
lines changed Original file line number Diff line number Diff line change 5
5
- pull_request
6
6
7
7
jobs :
8
+ build :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - uses : actions/checkout@v4
12
+
13
+ - uses : olafurpg/setup-scala@v10
14
+
15
+ - name : Compile ScienceWorld's JAR
16
+ run : ./simulator/package.sh
17
+
18
+ - uses : actions/upload-artifact@v4
19
+ with :
20
+ name : scienceworld.jar
21
+ path : scienceworld/scienceworld.jar
22
+ if-no-files-found : error
23
+
8
24
test :
25
+ needs : build
9
26
runs-on : ${{ matrix.os }}
10
27
strategy :
11
28
fail-fast : false
@@ -20,16 +37,29 @@ jobs:
20
37
git config --global core.eol lf
21
38
22
39
- uses : actions/checkout@v4
40
+
23
41
- name : Set up Python ${{ matrix.python-version }}
24
42
uses : actions/setup-python@v5
25
43
with :
26
44
python-version : ${{ matrix.python-version }}
45
+
46
+ - name : Remove old scienceworld.jar
47
+ run : python -c "import os; os.remove(os.path.join('scienceworld', 'scienceworld.jar'))"
48
+
49
+ - name : Download scienceworld.jar
50
+ uses : actions/download-artifact@v4
51
+ with :
52
+ name : scienceworld.jar
53
+ path : scienceworld/
54
+
27
55
- name : Install dependencies
28
56
run :
29
57
python -m pip install --upgrade pip
30
58
pip install tox tox-gh-actions
59
+
60
+ - name : Install ScienceWorld
61
+ run :
62
+ pip install -e .
63
+
31
64
- name : Test with tox
32
65
run : tox
33
- - uses : olafurpg/setup-scala@v10
34
- - name : Check scienceworld compilation
35
- run : ./simulator/package.sh
You can’t perform that action at this time.
0 commit comments