Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This is a basic workflow to help you get started with Actions

name: Test and pre-commit check

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

# Sets up python3
- uses: actions/setup-python@v2
with:
python-version: 3.x

# Install dependencies
- name: "Installs dependencies"
run: |
python3 -m pip install --upgrade pip
python3 -m pip install pylint --upgrade
python3 -m pip install pytest --upgrade

- uses: pre-commit/action@v2.0.3

# Tests with pytest
- name: Test with pytest
run: |
pytest
58 changes: 0 additions & 58 deletions .github/workflows/test-and-upload-to-testapi.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/upload-to-pip.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Upload to PIP

# Controls when the action will run.
# Controls when the action will run.
on:
# Triggers the workflow when a release is created
release:
release:
types: [created]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

# Fetches the content from README.md
# This will be used for the "long_description" field.
README_MD = open(join(dirname(abspath(__file__)), "README.md")).read()
with open(join(dirname(abspath(__file__)), "README.md"), encoding='utf-8') as f:
README_MD = f.read()

setup(
# The name of your project that we discussed earlier.
Expand Down
1 change: 0 additions & 1 deletion test/test_divide.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import math
import unittest

import ramda as R
Expand Down
1 change: 0 additions & 1 deletion test/test_empty.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import unittest
from tkinter.messagebox import NO

import ramda as R

Expand Down
1 change: 0 additions & 1 deletion test/test_groupBy.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import unittest

import ramda as R
from ramda.private._isTransformer import _isTransformer

"""
https://github.com/ramda/ramda/blob/master/test/groupBy.js
Expand Down
1 change: 0 additions & 1 deletion test/test_invoker.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import unittest

import ramda as R
from ramda.private._helper import funcArgsLength

"""
https://github.com/ramda/ramda/blob/master/test/invoker.js
Expand Down
1 change: 0 additions & 1 deletion test/test_reduceBy.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import unittest

import ramda as R
from ramda.private._helper import funcArgsLength

"""
https://github.com/ramda/ramda/blob/master/test/reduceBy.js
Expand Down
2 changes: 1 addition & 1 deletion test/test_reject.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import ramda as R

from .helpers.Maybe import Just, Nothing
from .helpers.Maybe import Just

"""
https://github.com/ramda/ramda/blob/master/test/reject.js
Expand Down