Skip to content

Commit 28f12f4

Browse files
committed
ci: update paths and such
1 parent cb306e9 commit 28f12f4

File tree

5 files changed

+69
-31
lines changed

5 files changed

+69
-31
lines changed

.github/dependabot.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
version: 2
22
updates:
33
- package-ecosystem: pip
4-
directory: /packages/backup
4+
directory: /
55
schedule:
66
interval: monthly
77
groups:
88
safe-dependencies:
9-
update-types: ["minor", "patch"]
9+
update-types: ['minor', 'patch']
1010
major-dependencies:
11-
update-types: ["major"]
11+
update-types: ['major']
1212
commit-message:
1313
prefix: deps
1414
prefix-development: deps(dev)
@@ -18,16 +18,16 @@ updates:
1818
interval: monthly
1919
groups:
2020
ci-dependencies:
21-
dependency-type: "production"
21+
dependency-type: 'production'
2222
- package-ecosystem: npm
23-
directory: /packages/restore
23+
directory: /
2424
schedule:
2525
interval: monthly
2626
groups:
2727
safe-dependencies:
28-
update-types: ["minor", "patch"]
28+
update-types: ['minor', 'patch']
2929
major-dependencies:
30-
update-types: ["major"]
30+
update-types: ['major']
3131
commit-message:
3232
prefix: deps
3333
prefix-development: deps(dev)
+57-16
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,82 @@
1-
name: 🐍 Pull request events
1+
name: Pull Request Events
2+
on: pull_request
23

3-
on:
4-
pull_request:
5-
paths:
6-
- "packages/backup/**"
7-
- ".github/workflows/push.python.yml"
4+
permissions:
5+
contents: write
6+
id-token: write
7+
pull-requests: write
88

99
concurrency:
10-
group: "${{ github.head_ref || github.ref }}"
10+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
1111
cancel-in-progress: true
1212

1313
jobs:
14-
test:
15-
name: Setup and Test
14+
test-unit-python:
15+
name: Unit tests 🐍
1616
runs-on: ubuntu-latest
1717

1818
steps:
19-
20-
- name: Checkout code
19+
- name: ⬇️ Set up code
2120
uses: actions/checkout@v4
2221
with:
2322
show-progress: false
2423

25-
- name: Set up Python
24+
- name: 🐍 Set up Python
2625
uses: actions/setup-python@v5
2726
with:
28-
python-version: "3.11"
27+
python-version: '3.11'
2928
cache: pip
3029
cache-dependency-path: setup.py
3130

32-
- name: Install libkrb5 for Kerberos on Linux
31+
- name: 📥 Download extra dependencies
3332
run: |
3433
sudo apt-get update
3534
sudo apt-get install -y libkrb5-dev
3635
37-
- name: Install module
36+
- name: 🏗 Install module
3837
run: pip install .[tests]
3938

40-
- name: Test with pytest
39+
- name: 🧪 Run tests
4140
run: pytest
41+
42+
test-unit-ui:
43+
name: Unit tests ⎔
44+
runs-on: ubuntu-latest
45+
46+
steps:
47+
- name: ⬇️ Set up code
48+
uses: actions/checkout@v4
49+
50+
- name: ⎔ Setup Node.js
51+
uses: actions/setup-node@v4
52+
with:
53+
node-version: lts/*
54+
cache: npm
55+
56+
- name: 📥 Download dependencies
57+
run: npm ci
58+
59+
- name: 🧪 Run tests
60+
run: npm test
61+
62+
- name: 🔍 Lint
63+
run: npm run lint
64+
65+
deploy-preview:
66+
name: Firebase preview
67+
runs-on: ubuntu-latest
68+
needs: [test-unit-ui]
69+
if: ${{ github.event.sender.type == 'User' }}
70+
environment:
71+
name: dev
72+
73+
steps:
74+
- name: 🚀 Deploy Firebase
75+
uses: agrc/firebase-website-deploy-composite-action@v1
76+
with:
77+
identity-provider: ${{ secrets.IDENTITY_PROVIDER }}
78+
service-account-email: ${{ secrets.SERVICE_ACCOUNT_EMAIL }}
79+
project-id: ${{ secrets.PROJECT_ID }}
80+
build-command: npm run build
81+
env:
82+
VITE_FIREBASE_CONFIG: ${{ secrets.FIREBASE_CONFIG }}

.github/workflows/push.yml

-3
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ jobs:
3535
environment:
3636
name: dev
3737
url: https://ut-dts-agrc-moonwalk-dev.web.app/
38-
defaults:
39-
run:
40-
working-directory: ./package/restore-ui
4138

4239
steps:
4340
- name: 🚀 Deploy

.github/workflows/release.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
name: 🐍 Release events
1+
name: Release Events
22

33
on:
44
release:
55
types: [published]
66

77
concurrency:
8-
group: "${{ github.head_ref || github.ref }}"
8+
group: '${{ github.head_ref || github.ref }}'
99
cancel-in-progress: true
1010

1111
jobs:
@@ -32,7 +32,7 @@ jobs:
3232
with:
3333
workload_identity_provider: ${{ secrets.IDENTITY_PROVIDER }}
3434
service_account: ${{ secrets.SERVICE_ACCOUNT_EMAIL }}
35-
token_format: "access_token"
35+
token_format: 'access_token'
3636

3737
- name: 🐳 Set up Docker Buildx
3838
id: builder
@@ -133,7 +133,7 @@ jobs:
133133
with:
134134
workload_identity_provider: ${{ secrets.IDENTITY_PROVIDER }}
135135
service_account: ${{ secrets.SERVICE_ACCOUNT_EMAIL }}
136-
token_format: "access_token"
136+
token_format: 'access_token'
137137

138138
- name: 🐳 Set up Docker Buildx
139139
id: builder

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ The restore service consists of a website that allows you to view your backups a
1818

1919
1. conda create --name moonwalk-backup python=3.11
2020
1. conda activate moonwalk-backup
21-
1. cd packages/backup
21+
1. cd jobs/backup
2222
1. pip install -e ".[tests]"

0 commit comments

Comments
 (0)