-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (57 loc) · 1.78 KB
/
std_tests.yaml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
---
name: GNE Standard Tests
on: [push,pull_request]
jobs:
std_tests:
name: std_tests
runs-on: ubuntu-22.04
steps:
- name: Checkout 'gne_tests' repository
uses: actions/checkout@v4
- name: Checkout 'gne_exercises' repository (actions/checkout doesn't work)
run: ./gh_actions.sh
- name: "List files and directories"
run: |
pwd
ls -al .
ls -al ..
- name: Setup python
uses: actions/setup-python@v5
id: cp311
with:
python-version: '3.11'
architecture: x64
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.7.1
virtualenvs-create: true
virtualenvs-in-project: true
- name: Cache Poetry virtualenv
uses: actions/cache@v4
id: cached-poetry-dependencies
with:
path: .venv
key: venv-${{ runner.os }}-cache-${{ steps.cp311.outputs.version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install Virtual Environment Dependencies
run: poetry install -C gne_tests/
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
- name: "List files and directories"
run: |
pwd
ls -al .
ls -al ..
- name: View installed packages
run: |
poetry run python -m pip list
- name: Run pylama on 'gne_tests' and 'gne_exercises'
run: |
poetry run pylama .
poetry run pylama ../gne_exercises/
- name: Run black on 'gne_tests' and 'gne_exercises'
run: |
poetry run black --check .
poetry run black --check ../gne_exercises/
- name: Per-lesson tests
run: |
poetry run pytest -s -v -x tests/