1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-openapi synced 2026-01-11 07:30:37 +01:00

update github acction

Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
ふぁ 2023-07-30 05:55:44 +09:00
parent 86315f25a0
commit 0b34065deb
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA
7 changed files with 114 additions and 26 deletions

View file

@ -1,21 +1,12 @@
name: test-python
on:
# auto review
pull_request:
paths-ignore:
- "test/**"
- ".github/**"
branches:
- master
env:
TWITTER_SESSION: ${{secrets.TWITTER_SESSION}}
on: ["pull_request_target"]
jobs:
test:
name: Test
build_and_preview:
runs-on: ubuntu-latest
name: Test
environment: twitter_session
steps:
- uses: actions/checkout@v3
@ -43,13 +34,14 @@ jobs:
- name: Get Openapi Generator
run: |
wget https://github.com/fa0311/openapi-generator/releases/download/twitter_openapi_python_1.2.0/openapi-generator-cli.jar -O openapi-generator-cli.jar --no-verbose --show-progress --no-clobber
wget https://github.com/fa0311/openapi-generator/releases/download/twitter_openapi_python_1.2.0/openapi-generator-cli.jar -O openapi-generator-cli.jar --no-verbose
if: steps.openapi-generator-cache.outputs.cache-hit != 'true'
# Python Setup
- name: Set up Python 3.8
uses: actions/setup-python@v2
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: "3.10"
architecture: "x64"
- name: Get Python version
@ -96,4 +88,4 @@ jobs:
run: |
python test/python/test_serialize.py
env:
TWITTER_SESSION: ${{secrets.TWITTER_SESSION}}
TWITTER_SESSION: ${{ secrets.TWITTER_SESSION }}