-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 992 Bytes
/
pyoes.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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
run: coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}