forked from lincolnrocha/PyMJC
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (28 loc) · 916 Bytes
/
ci.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
name: Continuous Integration
on: [push]
jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- name: Set up Python
id: setup-python
uses: actions/setup-python@v3
with:
python-version: 3.10.0
- name: Check out Repository
uses: actions/checkout@v3
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-in-project: true
- name: Load Cached Venv
id: cached-poetry-dependencies
uses: actions/cache@v2
with:
path: .venv
key: venv-${{ hashFiles('**/poetry.lock') }}
- name: Install Dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction
- name: Run Tests
run: poetry run python -u -m unittest discover tests