-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (35 loc) · 1.04 KB
/
req_lint_test.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
name: requirements_lint_test
on:
# Triggers the workflow on push to all the branches and on pull request to the "master" or the "dev" branch
push:
pull_request:
branches: [ "master", "dev", "backend", "pytest"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
test-n-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: Install dependencies
run: |
python -m pip install -r src/backend/requirements.txt
python -m pip install -r requirements_git_actions.txt
- name: apply_black
run:
black --verbose .
- uses: psf/black@stable
with:
options: "--check --verbose"
src: "."
jupyter: true
version: "~= 22.0"
- name: Test with pytest
working-directory: tests/
run: |
pytest
env:
DJANGO_SETTINGS_MODULE: shift_3_womenpp.settings
pythonpath: "../src/backend/"