-
Notifications
You must be signed in to change notification settings - Fork 44
64 lines (53 loc) · 1.44 KB
/
pull_request.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
name: Pull Request
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
node:
uses: nasa-gcn/.github/.github/workflows/node.yml@main
python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check for Lint
uses: chartboost/ruff-action@v1
- name: Check Formatting
uses: chartboost/ruff-action@v1
with:
args: format --check
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Pip Install
run: pip install -r requirements.txt
- name: Pytest
run: pytest python
- name: MyPy
run: mypy python
- name: Upload to Codecov.io
uses: codecov/codecov-action@v3
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: arm64
- name: NPM Install
run: npm ci
- name: Build
run: npm run build
- name: Install Python dependencies
run: docker run --rm --platform linux/arm64 -v $(pwd):/src python:3.11 sh -c 'apt-get update && apt-get -y install --no-install-recommends npm && cd src && npx arc hydrate -v'