Skip to content

Merge pull request #307 from OnroerendErfgoed/feature/306_ghactions_b… #19

Merge pull request #307 from OnroerendErfgoed/feature/306_ghactions_b…

Merge pull request #307 from OnroerendErfgoed/feature/306_ghactions_b… #19

Workflow file for this run

name: pyoes
on: [push, pull_request]
env:
PYTHON_VERSION: "3.11"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '16'
- name: Install dependencies
env:
HATCH_BUILD_NO_HOOKS: true
run: |
python3 -m venv venv
source venv/bin/activate
pip install pip-tools
pip-sync requirements-ci.txt
pip install -e .
- name: Run checks and tests
working-directory: ./
run: |
./check_versions.sh
source venv/bin/activate
py.test --cov pyoes --cov-report term-missing
- name: Upload coverage to Coveralls
working-directory: ./
run: |
source venv/bin/activate
coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}