Skip to content

Commit

Permalink
using gh actions (#7)
Browse files Browse the repository at this point in the history
* using gh actions

* try newer versions

* update reqs

* fix ci

* updated version

* updated changelog

* fix tests
  • Loading branch information
sonic182 authored Aug 24, 2024
1 parent 0e835bc commit 8839901
Show file tree
Hide file tree
Showing 9 changed files with 72 additions and 26 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Python CI

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ["3.8", "3.11"]

steps:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: pip install -e .[test]

- name: Run tests with coverage
run: py.test
11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.2.0] - 2024-08-24
### Fixed
- Fix dependencies for working with django 2 (pending to update package so it works with django 3 and 4)

## [0.1.9] - 2021-11-02
### Fixed
- No pytest-runner in setup.py
Expand Down Expand Up @@ -38,7 +42,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Fixed indentation

[Unreleased]: https://github.com/sonic182/libsasscompiler/compare/0.1.9...master
[Unreleased]: https://github.com/sonic182/libsasscompiler/compare/0.2.0...master
[0.2.0]: https://github.com/sonic182/libsasscompiler/compare/0.1.9...0.2.0
[0.1.9]: https://github.com/sonic182/libsasscompiler/compare/0.1.8...0.1.9
[0.1.8]: https://github.com/sonic182/libsasscompiler/compare/0.1.7...0.1.8
[0.1.7]: https://github.com/sonic182/libsasscompiler/compare/0.1.6...0.1.7
Expand Down
2 changes: 1 addition & 1 deletion libsasscompiler/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = '0.1.9'
VERSION = '0.2.0'
2 changes: 1 addition & 1 deletion requirements.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
libsass<1.0.0
django-pipeline<1.7.0
django-pipeline<4.0.0
10 changes: 6 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#
# This file is autogenerated by pip-compile
# To update, run:
# This file is autogenerated by pip-compile with Python 3.12
# by the following command:
#
# pip-compile requirements.in
#
django-pipeline<2.1.0
libsass<=1.0.0
django-pipeline==3.1.0
# via -r requirements.in
libsass==0.23.0
# via -r requirements.in
9 changes: 1 addition & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,6 @@ def requirements(filename):
test_requires=['pytest'],
install_requires=requirements('requirements.txt'),
extras_require={
'test': [
'pytest<=3.2.0',
'pytest-pep8<=1.8.0',
'pytest-cov<=2.6.0',
'django<=1.12.0',
'coveralls',
'django-pipeline<=2.1.0'
]
'test': requirements('test-requirements.txt')
},
zip_safe=False)
4 changes: 4 additions & 0 deletions test-requirements.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
pytest
pytest-cov
django<3.0.0
django-pipeline<4.0.0
28 changes: 28 additions & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#
# This file is autogenerated by pip-compile with Python 3.12
# by the following command:
#
# pip-compile test-requirements.in
#
coverage[toml]==7.6.1
# via pytest-cov
django==2.2.28
# via -r test-requirements.in
django-pipeline==3.1.0
# via -r test-requirements.in
iniconfig==2.0.0
# via pytest
packaging==24.1
# via pytest
pluggy==1.5.0
# via pytest
pytest==8.3.2
# via
# -r test-requirements.in
# pytest-cov
pytest-cov==5.0.0
# via -r test-requirements.in
pytz==2024.1
# via django
sqlparse==0.5.1
# via django

0 comments on commit 8839901

Please sign in to comment.