github actions: why is there no secret key?? #61
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: run tests | |
on: [push, pull_request] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
# Use the base-devel image of Arch Linux for building pyalpm | |
container: archlinux:base-devel | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Enable archlinuxcn repo | |
run: | | |
echo -e '[archlinuxcn]\nServer = https://repo.archlinuxcn.org/$arch' >> /etc/pacman.conf | |
pacman-key --init | |
pacman-key --populate | |
pacman -Sy --noconfirm archlinuxcn-keyring | |
- name: Install Python and deps | |
run: pacman -Su --noconfirm python python-pytest python-pytest-asyncio nvchecker python-requests python-lxml python-yaml pyalpm python-structlog python-prctl python-fluent.runtime | |
- name: Run pytest | |
run: pytest |