Skip to content

Commit

Permalink
リントとテストの実行をTravisCIからGithub Actionsに移行しました。 (#669)
Browse files Browse the repository at this point in the history
* format

* TravisCiの削除

* update lint-test

* installの修正

* testの修正
  • Loading branch information
yuji38kwmt authored Aug 13, 2024
1 parent c0372cc commit 858f6a0
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 34 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/lint-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Python tests and lint

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip "poetry<1.9"
poetry install --only main,test --all-extras
- name: Test
run: |
poetry run pytest tests/test_local*.py
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install dependencies
run: |
python -m pip install --upgrade pip "poetry<1.9"
poetry install --only main,linter --all-extras
- name: Lint
run: |
make lint
34 changes: 0 additions & 34 deletions .travis.yml

This file was deleted.

0 comments on commit 858f6a0

Please sign in to comment.