Skip to content

Commit

Permalink
Merge adcce49 into 2e44231
Browse files Browse the repository at this point in the history
  • Loading branch information
sushain97 committed Mar 1, 2022
2 parents 2e44231 + adcce49 commit 07d1040
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Set PYENV_ROOT
run: echo "PYENV_ROOT=${RUNNER_TEMP}/pyenv" >> $GITHUB_ENV
- name: Cache Python installation
uses: actions/cache@v2
id: cache-python
Expand All @@ -39,7 +41,7 @@ jobs:
if: steps.cache-python.outputs.cache-hit != 'true'

- name: Install Pipenv
run: pip install pipenv
run: pyenv run pip install pipenv
- name: Cache Pip dependencies
id: cache-pipenv
uses: actions/cache@v2
Expand All @@ -48,13 +50,13 @@ jobs:
key: ${{ runner.os }}-python${{ matrix.python-version }}-pipenv-${{ hashFiles('**/Pipfile.lock') }}-v2
- name: Install Pip dependencies
if: steps.cache-pipenv.outputs.cache-hit != 'true'
run: pipenv install --dev
run: pyenv run pipenv install --dev

- name: Build
run: pipenv run make
run: pyenv run pipenv run make

- name: Test
run: NONPAIRS=/tmp/languages pipenv run make test
run: NONPAIRS=/tmp/languages pyenv run pipenv run make unit-test
lint:
runs-on: ubuntu-latest
container: ghcr.io/apertium/apertium-apy-cicd
Expand Down
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ test-release: langNames.db
twine upload --sign --repository-url https://test.pypi.org/legacy/ dist/*

unit-test:
pipenv --venv
pipenv --where
which python3
which python
pipenv --support
python3 -m unittest tests/test*.py

lint:
Expand Down

0 comments on commit 07d1040

Please sign in to comment.