Skip to content

Commit 2b5549e

Browse files
committed
wip
1 parent 93b89d9 commit 2b5549e

File tree

2 files changed

+71
-0
lines changed

2 files changed

+71
-0
lines changed

.github/actions/setup/action.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: 'Setup'
2+
description: 'Set up CI environment'
3+
runs:
4+
using: "composite"
5+
steps:
6+
- name: Check out repository
7+
uses: actions/checkout@v2
8+
9+
- uses: actions/setup-python@v2
10+
with:
11+
python-version: 3.8.2
12+
13+
- name: Cache Python dependencies
14+
uses: actions/cache@v2
15+
env:
16+
cache-name: warehouse-cache-pip
17+
with:
18+
path: ~/.cache/pip
19+
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('requirements.txt', 'requirements/*.txt') }}
20+
restore-keys: |
21+
${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-
22+
${{ runner.os }}-${{ github.job }}-
23+
${{ runner.os }}-
24+
25+
- name: Install Python dependencies
26+
run: |
27+
pip install -U pip setuptools wheel
28+
pip install -r requirements.txt
29+
pip install -r requirements/dev.txt
30+
31+
- uses: actions/setup-node@v2
32+
with:
33+
node-version: 14.4.0
34+
35+
- name: Cache Node dependencies
36+
uses: actions/cache@v2
37+
env:
38+
cache-name: warehouse-cache-npm-modules-static
39+
with:
40+
path: |
41+
~/.npm
42+
**/node_modules
43+
key: ${{ runner.os }}-build-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
44+
restore-keys: |
45+
${{ runner.os }}-build-${{ github.job }}-${{ env.cache-name }}-
46+
${{ runner.os }}-build-${{ github.job }}-
47+
${{ runner.os }}-build-
48+
${{ runner.os }}-
49+
50+
- name: Install Node dependencies
51+
run: npm ci
52+
53+
- name: Check versions
54+
run: |
55+
node -v
56+
npm -v
57+
python --version
58+
59+
- run: echo "Setup success!"
60+
shell: bash

.github/workflows/ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
on: [push]
2+
3+
jobs:
4+
hello_world_job:
5+
runs-on: ubuntu-latest
6+
name: A job to say hello
7+
steps:
8+
- uses: actions/checkout@v2
9+
- uses: ./.github/actions/setup
10+
- run: echo Done
11+
shell: bash

0 commit comments

Comments
 (0)