-
Notifications
You must be signed in to change notification settings - Fork 2
113 lines (91 loc) · 2.33 KB
/
testing.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
name: Testing
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
testing:
name: Testing
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install NodeJS
uses: actions/setup-node@v4
with:
registry-url: https://npm.pkg.github.com
scope: "@eveshipfit"
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install dependencies
run: |
npm install
pip install black flake8
- uses: TrueBrain/actions-flake8@v2
with:
path: convert download_icons download_sde
max_line_length: 120
- name: Run linter
run: |
npm run lint
black --check -l 120 convert download_icons download_sde
sde:
name: Fetch SDE
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Python2
run: |
choco install python2
C:\Python27\python.exe -m pip install --upgrade pip
C:\Python27\python.exe -m pip install requests
- name: Download loaders
run: |
C:\Python27\python.exe download_sde/download_loaders.py
- name: Execute loaders
run: |
C:\Python27\python.exe download_sde/execute_loaders.py
- name: Publish artifact
uses: actions/upload-artifact@v4
with:
name: sde
path: json
datafiles:
name: Generate datafiles
runs-on: ubuntu-latest
needs: [sde]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install NodeJS
uses: actions/setup-node@v4
with:
registry-url: https://npm.pkg.github.com
scope: "@eveshipfit"
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install dependencies
run: |
sudo apt update
sudo apt install -y --no-install-recommends protobuf-compiler
pip install -r requirements.txt
npm install
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: sde
path: sde
- name: Convert SDE YAML to Protobuf
run: |
protoc --python_out=. esf.proto
python -m convert sde
- name: Fetch icons
run: |
python -m download_icons sde
- name: Build package
run: |
npm run build