forked from fortran-lang/registry
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 933 Bytes
/
tests.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
name: Run Tests for Backend
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:
env:
MONGO_DB_NAME: testregistry
MONGO_URI: mongodb://localhost:27017/
MONGO_USER_NAME: Admin
MONGO_PASSWORD: Admin
SALT: MYSALT
HOST: localhost
RESET_EMAIL: [email protected]
RESET_PASSWORD: reset
SUDO_PASSWORD: fortran
IS_CI: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout page source
uses: actions/checkout@v4
- name: MongoDB in GitHub Actions
uses: supercharge/[email protected]
with:
mongodb-port: 27017
- name: Setup Python
uses: actions/setup-python@v5
- name: Install python libraries
run: pip3 install --user -r backend/requirements.txt
- name: run tests
run: cd backend && python -m unittest discover -s tests