Skip to content

Commit

Permalink
updated test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
feldlime committed Nov 6, 2023
1 parent ab1accb commit 1877675
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 19 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/cicd.yml

This file was deleted.

44 changes: 44 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Test
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize]


jobs:
test:
runs-on: ubuntu-20.04

steps:
- name: Checkout
uses: actions/checkout@v2

- name: "Setup python"
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true

- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}

- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install

- name: Run tests
run: make lint

- name: Run linters
run: make test
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Python

В данном шаблоне используется Python3.8, однако вы можете использовать более свежие версии, если хотите.
В данном шаблоне используется Python3.9, однако вы можете использовать и другие версии, если хотите.
Но мы не гарантируем, что все будет работать.

### Make
Expand Down

0 comments on commit 1877675

Please sign in to comment.