Fix CI #181
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Main | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
env: | |
LANG: C.UTF-8 | |
PIPENV_VENV_IN_PROJECT: 1 | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
container: ghcr.io/apertium/apertium-apy-cicd | |
strategy: | |
matrix: | |
python-version: | |
- 3.8.18 | |
- 3.9.18 | |
- 3.10.13 | |
- 3.11.7 | |
- 3.12.1 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: pipenv | |
- name: Install Pipenv | |
run: pip install pipenv | |
- name: Install Pip dependencies | |
run: pipenv install --deploy --dev | |
- name: Build | |
run: pipenv run make | |
- name: Test | |
run: NONPAIRS=/tmp/languages pipenv run make unit-test | |
lint: | |
runs-on: ubuntu-latest | |
container: ghcr.io/apertium/apertium-apy-cicd | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12.1 | |
cache: pipenv | |
- name: Install Pipenv | |
run: pip install pipenv | |
- name: Install Pip dependencies | |
run: pipenv install --deploy --dev | |
- name: Build | |
run: pipenv run make | |
- name: Lint | |
run: pipenv run make lint | |
coverage: | |
runs-on: ubuntu-latest | |
container: ghcr.io/apertium/apertium-apy-cicd | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12.1 | |
cache: pipenv | |
- name: Install Pipenv | |
run: pip install pipenv | |
- name: Install Pip dependencies | |
run: pipenv install --deploy --dev | |
- name: Build | |
run: pipenv run make | |
- name: Test | |
run: NONPAIRS=/tmp/languages pipenv run make coverage | |
- name: Coveralls | |
run: pipenv run coveralls --service=github | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |