-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (32 loc) · 1.05 KB
/
test_job.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
name: Tests
run-name: ${{ github.actor }} is doing some smoke tests
on: [push, pull_request, workflow_call]
jobs:
Smoke-tests:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Create conda env
# https://github.com/marketplace/actions/setup-micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-name: freva-web
environment-file: conda-env.yml
cache-environment: false
cache-downloads: false
init-shell: bash
- name: Generate self signed certs
run: >
micromamba run -n freva-web python docker/config/dev-utils.py gen-certs
- name: Set up services
run: docker compose up -d --remove-orphans
- name: Lint js code and python
run: micromamba run -n freva-web make lint
- name: Run build checks for js and python smoke tests
run: micromamba run -n freva-web make tests