Skip to content

Commit

Permalink
Fix pypy build in github action
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanHuot committed Feb 24, 2024
1 parent 50c09a4 commit 56e2108
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 11 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ jobs:
tox-env: py311
- python-version: "3.12"
tox-env: py312
- python-version: "pypy3"
tox-env: pypy3
- python-version: "pypy3.10"
tox-env: pypy310
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
uses: coverallsapp/github-action@1.1.3
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: lcov.info
Expand Down
14 changes: 14 additions & 0 deletions docs/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,22 @@ In order to run successfully, you will need all versions of Python installed. We

$ pyenv install 3.8.18
$ pyenv install pypy3.10-7.3.13
$ pyenv global pypy3.10-7.3.13 # switch to pypy


Build and test via pipeline
===========================

If you don't want to install multiple python versions, or if you have
made changes in the pipeline code, it is possible to execute the Github Action
locally with the `act` tools available here: https://nektosact.com/usage/index.html

Run tests for `pypy3.9`:

```shell
act -W .github/workflows/run-tests.yml -j tests --matrix python-version:pypy3.9
```

Publishing a release (for maintainer role)
==========================================

Expand Down
5 changes: 0 additions & 5 deletions requirements-test-27.txt

This file was deleted.

2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist=py{38,39,310,311,312,py3},docs,readme,ruff
envlist=py{38,39,310,311,312,py310},docs,readme,ruff

[testenv]
description=run test on {basepython}
Expand Down

0 comments on commit 56e2108

Please sign in to comment.