Skip to content

Commit

Permalink
Some cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan-kulynych committed May 7, 2024
1 parent 2cfa8a4 commit 22af846
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 79 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Python package

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Cache poetry install
uses: actions/cache@v2
with:
path: ~/.local
key: poetry
- uses: snok/install-poetry@v1
with:
version: 1.7.1
virtualenvs-create: true
virtualenvs-in-project: true
- name: Cache deps
id: cache-deps
uses: actions/cache@v2
with:
path: .venv
key: pydeps-${{ hashFiles('**/poetry.lock') }}-${{ matrix.python-version }}
- run: poetry install --no-interaction --with dev
name: Install package
- run: poetry run pytest
name: Run tests
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ htmlcov/
.cache
nosetests.xml
coverage.xml
*,cover
.hypothesis/

# Translations
Expand Down
78 changes: 0 additions & 78 deletions requirements.txt

This file was deleted.

0 comments on commit 22af846

Please sign in to comment.