Skip to content

Commit b45ef57

Browse files
authored
Using new generator setup (#57)
* Use latest spec and generator * Fix test generation * Upgrade yarn deps * Add Webhook models * Update CHANGELOG
1 parent 11b7355 commit b45ef57

File tree

709 files changed

+50484
-64603
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

709 files changed

+50484
-64603
lines changed

.github/workflows/python.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# NOTE: This file is auto generated by OpenAPI Generator.
2+
# URL: https://openapi-generator.tech
3+
#
4+
# ref: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
5+
6+
name: freeclimb Python package
7+
8+
on:
9+
push:
10+
branches: ["**"]
11+
pull_request:
12+
branches: ["master"]
13+
14+
jobs:
15+
build:
16+
17+
runs-on: ubuntu-latest
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
22+
23+
steps:
24+
- uses: actions/checkout@v4
25+
- uses: actions/setup-node@v3
26+
- name: Start Prism Server
27+
run: |
28+
yarn install
29+
./node_modules/.bin/prism mock -h 127.0.0.1 openapi.json &
30+
- name: Set up Python ${{ matrix.python-version }}
31+
uses: actions/setup-python@v4
32+
with:
33+
python-version: ${{ matrix.python-version }}
34+
- name: Install dependencies
35+
run: |
36+
python -m pip install --upgrade pip
37+
pip install -r requirements.txt
38+
pip install -r test-requirements.txt
39+
- name: Test with pytest
40+
run: |
41+
pytest --cov={{packageName}}

0 commit comments

Comments
 (0)