Add Python 3.12 support. Update action versions #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
paths: | |
- '**.py' | |
- .github/workflows/test.yaml | |
- pyproject.toml | |
pull_request: | |
paths: | |
- '**.py' | |
- .github/workflows/test.yaml | |
- pyproject.toml | |
concurrency: | |
group: test-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ['3.8', '3.12'] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install project | |
run: pip install . | |
- name: Test | |
run: rfparser -v --pages 1 --xml pubs_for_website.xml | |
env: | |
RF_USERNAME: ${{ secrets.RF_USERNAME }} | |
RF_PASSWORD: ${{ secrets.RF_PASSWORD }} | |
RFPARSER_EMAIL: ${{ secrets.RFPARSER_EMAIL }} | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: Pubs for website (${{ matrix.python-version }}) | |
path: pubs_for_website.xml |